Struct DebouncedEvent
pub struct DebouncedEvent { pub event: Event, pub time: Instant }
A debounced event is emitted after a short delay.
Fields
event: EventThe original event.
time: InstantThe time at which the event occurred.
Implementations
impl DebouncedEvent
fn new(event: Event, time: Instant) -> Self
Trait Implementations
impl Clone for DebouncedEvent
fn clone(&self) -> DebouncedEvent
impl Debug for DebouncedEvent
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Deref for DebouncedEvent
type Target = Event;fn deref(&self) -> &Self::Target
impl DerefMut for DebouncedEvent
fn deref_mut(&mut self) -> &mut Self::Target
impl Eq for DebouncedEvent
impl PartialEq for DebouncedEvent
fn eq(&self, other: &DebouncedEvent) -> bool
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 UnsafeUnpin for DebouncedEvent
impl UnwindSafe for DebouncedEvent
Blanket Implementations
impl<P, T> Receiver for DebouncedEvent
where
P: Deref<Target = T> + ?Sized,
T: ?Sized,
type Target = T;
impl<T> Any for DebouncedEvent
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for DebouncedEvent
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for DebouncedEvent
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for DebouncedEvent
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for DebouncedEvent
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for DebouncedEvent
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for DebouncedEvent
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for DebouncedEvent
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for DebouncedEvent
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>