#[repr(C)]pub struct WatchEvent(/* private fields */);
Expand description
Describes the type of event that occurred in the directory being watched.
Implementations§
Source§impl WatchEvent
impl WatchEvent
Sourcepub const DELETED: WatchEvent = _
pub const DELETED: WatchEvent = _
The directory being watched has been deleted. The name returned for this event
will be .
(dot), as it is referring to the directory itself.
Sourcepub const ADD_FILE: WatchEvent = _
pub const ADD_FILE: WatchEvent = _
A file was added.
Sourcepub const REMOVE_FILE: WatchEvent = _
pub const REMOVE_FILE: WatchEvent = _
A file was removed.
Sourcepub const EXISTING: WatchEvent = _
pub const EXISTING: WatchEvent = _
A file existed at the time the Watcher was created.
Sourcepub const IDLE: WatchEvent = _
pub const IDLE: WatchEvent = _
All existing files have been enumerated.
Trait Implementations§
Source§impl Clone for WatchEvent
impl Clone for WatchEvent
Source§fn clone(&self) -> WatchEvent
fn clone(&self) -> WatchEvent
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 WatchEvent
impl Debug for WatchEvent
Source§impl PartialEq for WatchEvent
impl PartialEq for WatchEvent
impl Copy for WatchEvent
impl Eq for WatchEvent
impl StructuralPartialEq for WatchEvent
Auto Trait Implementations§
impl Freeze for WatchEvent
impl RefUnwindSafe for WatchEvent
impl Send for WatchEvent
impl Sync for WatchEvent
impl Unpin for WatchEvent
impl UnwindSafe for WatchEvent
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)