pub enum ExternalEvent<T> {
Added(T),
Modified(T),
Removed(T),
}Expand description
A change event produced by an ExternalSource on each poll.
The source implementation is responsible for tracking state between calls and classifying events correctly.
Variants§
Added(T)
An item was observed for the first time.
Modified(T)
An item that was previously observed has changed.
Removed(T)
An item that was previously observed is no longer present.
Trait Implementations§
Source§impl<T: Clone> Clone for ExternalEvent<T>
impl<T: Clone> Clone for ExternalEvent<T>
Source§fn clone(&self) -> ExternalEvent<T>
fn clone(&self) -> ExternalEvent<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for ExternalEvent<T>where
T: Freeze,
impl<T> RefUnwindSafe for ExternalEvent<T>where
T: RefUnwindSafe,
impl<T> Send for ExternalEvent<T>where
T: Send,
impl<T> Sync for ExternalEvent<T>where
T: Sync,
impl<T> Unpin for ExternalEvent<T>where
T: Unpin,
impl<T> UnsafeUnpin for ExternalEvent<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ExternalEvent<T>where
T: UnwindSafe,
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