Struct fibers_inotify::InotifyServiceHandle
source · pub struct InotifyServiceHandle { /* private fields */ }
Expand description
Handle of InotifyService
.
Implementations§
source§impl InotifyServiceHandle
impl InotifyServiceHandle
sourcepub fn watch<P: AsRef<Path>>(&self, path: P, mask: WatchMask) -> Watcher
pub fn watch<P: AsRef<Path>>(&self, path: P, mask: WatchMask) -> Watcher
Makes a new Watcher
that watches path
with the given mask.
If the inode indicated by the path has already been watched by other watchers,
the one of existing watcher will be got kicked out and the new one will be added instead.
After that the service will create new inotify instance (i.e., file descriptor) and
re-add the victim watcher to it.
In that case the re-added watcher will receive the event WatcherEvent::RestartWatching
.
Trait Implementations§
source§impl Clone for InotifyServiceHandle
impl Clone for InotifyServiceHandle
source§fn clone(&self) -> InotifyServiceHandle
fn clone(&self) -> InotifyServiceHandle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more