Struct inotify::WatchDescriptor
source · pub struct WatchDescriptor { /* private fields */ }
Expand description
Represents a watch on an inode
Can be obtained from Watches::add
or from an Event
. A watch
descriptor can be used to get inotify to stop watching an inode by passing
it to Watches::remove
.
Implementations§
source§impl WatchDescriptor
impl WatchDescriptor
sourcepub fn get_watch_descriptor_id(&self) -> c_int
pub fn get_watch_descriptor_id(&self) -> c_int
Getter method for a watcher’s id.
Can be used to distinguish events for files with the same name.
Trait Implementations§
source§impl Clone for WatchDescriptor
impl Clone for WatchDescriptor
source§fn clone(&self) -> WatchDescriptor
fn clone(&self) -> WatchDescriptor
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 moresource§impl Debug for WatchDescriptor
impl Debug for WatchDescriptor
source§impl Hash for WatchDescriptor
impl Hash for WatchDescriptor
source§impl Ord for WatchDescriptor
impl Ord for WatchDescriptor
source§impl PartialEq for WatchDescriptor
impl PartialEq for WatchDescriptor
source§impl PartialOrd for WatchDescriptor
impl PartialOrd for WatchDescriptor
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for WatchDescriptor
Auto Trait Implementations§
impl RefUnwindSafe for WatchDescriptor
impl Send for WatchDescriptor
impl Sync for WatchDescriptor
impl Unpin for WatchDescriptor
impl UnwindSafe for WatchDescriptor
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