pub struct WatchDescriptor {
pub wd: i32,
pub inode: u64,
pub mask: u32,
pub recursive: bool,
pub path: String,
}Expand description
A watch descriptor tracking a single watched path/inode.
Fields§
§wd: i32Unique watch descriptor ID (returned to userspace).
inode: u64Inode number of the watched file/directory.
mask: u32Bitmask of event types to watch for.
recursive: boolWhether to recursively watch subdirectories.
path: StringOriginal path being watched (for debugging/display).
Trait Implementations§
Source§impl Clone for WatchDescriptor
impl Clone for WatchDescriptor
Source§fn clone(&self) -> WatchDescriptor
fn clone(&self) -> WatchDescriptor
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WatchDescriptor
impl RefUnwindSafe for WatchDescriptor
impl Send for WatchDescriptor
impl Sync for WatchDescriptor
impl Unpin for WatchDescriptor
impl UnwindSafe for WatchDescriptor
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)