pub struct Watcher {
inotify: Inotify,
names: Vec<(WatchDescriptor, HashSet<OsString>)>,
buffer: Vec<u8>,
}Fields§
§inotify: Inotify§names: Vec<(WatchDescriptor, HashSet<OsString>)>Watch descriptor -> the file names of interest in that directory.
buffer: Vec<u8>Implementations§
Source§impl Watcher
impl Watcher
Sourcepub fn new(files: &[PathBuf]) -> Result<Self>
pub fn new(files: &[PathBuf]) -> Result<Self>
Watches the directories of files. A directory that does not
exist yet (/etc/scx without an administrator’s catalog) is
skipped, and the periodic poll covers it.
Auto Trait Implementations§
impl Freeze for Watcher
impl RefUnwindSafe for Watcher
impl Send for Watcher
impl Sync for Watcher
impl Unpin for Watcher
impl UnsafeUnpin for Watcher
impl UnwindSafe for Watcher
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more