pub enum TaskWatchEvent {
Added(Task),
Modified(Task),
Deleted(Task),
}Expand description
One change emitted by a task watch.
Variants§
Added(Task)
A task entered the watched collection.
Modified(Task)
A task already in the watched collection changed.
Deleted(Task)
A task left the watched collection or was deleted.
Implementations§
Source§impl TaskWatchEvent
impl TaskWatchEvent
Sourcepub fn resource_version(&self) -> &str
pub fn resource_version(&self) -> &str
Opaque store version of this event.
Sourcepub fn into_object(self) -> Task
pub fn into_object(self) -> Task
Returns the event resource.
Trait Implementations§
Source§impl Clone for TaskWatchEvent
impl Clone for TaskWatchEvent
Source§fn clone(&self) -> TaskWatchEvent
fn clone(&self) -> TaskWatchEvent
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 moreSource§impl Debug for TaskWatchEvent
impl Debug for TaskWatchEvent
impl Eq for TaskWatchEvent
Source§impl PartialEq for TaskWatchEvent
impl PartialEq for TaskWatchEvent
impl StructuralPartialEq for TaskWatchEvent
Auto Trait Implementations§
impl Freeze for TaskWatchEvent
impl RefUnwindSafe for TaskWatchEvent
impl Send for TaskWatchEvent
impl Sync for TaskWatchEvent
impl Unpin for TaskWatchEvent
impl UnsafeUnpin for TaskWatchEvent
impl UnwindSafe for TaskWatchEvent
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