pub struct DebouncedEvent {
pub event: Event,
pub time: Instant,
}
Expand description
A debounced event is emitted after a short delay.
Fields§
§event: Event
The original event.
time: Instant
The time at which the event occurred.
Implementations§
Methods from Deref<Target = Event>§
Sourcepub fn need_rescan(&self) -> bool
pub fn need_rescan(&self) -> bool
Returns whether some events may have been missed. If true, you should assume any file or folder might have been modified.
See Flag::Rescan
for more information.
Sourcepub fn tracker(&self) -> Option<usize>
pub fn tracker(&self) -> Option<usize>
Retrieves the tracker ID for an event directly, if present.
Sourcepub fn flag(&self) -> Option<Flag>
pub fn flag(&self) -> Option<Flag>
Retrieves the Notify flag for an event directly, if present.
Trait Implementations§
Source§impl Clone for DebouncedEvent
impl Clone for DebouncedEvent
Source§fn clone(&self) -> DebouncedEvent
fn clone(&self) -> DebouncedEvent
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 DebouncedEvent
impl Debug for DebouncedEvent
Source§impl Deref for DebouncedEvent
impl Deref for DebouncedEvent
Source§impl DerefMut for DebouncedEvent
impl DerefMut for DebouncedEvent
Source§impl PartialEq for DebouncedEvent
impl PartialEq for DebouncedEvent
impl Eq for DebouncedEvent
impl StructuralPartialEq for DebouncedEvent
Auto Trait Implementations§
impl Freeze for DebouncedEvent
impl RefUnwindSafe for DebouncedEvent
impl Send for DebouncedEvent
impl Sync for DebouncedEvent
impl Unpin for DebouncedEvent
impl UnwindSafe for DebouncedEvent
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
)