pub enum OperationEvent<TProgress = Value, TOutput = Value> {
Accepted {
snapshot: OperationSnapshot<TProgress, TOutput>,
},
Started {
snapshot: OperationSnapshot<TProgress, TOutput>,
},
Progress {
snapshot: OperationSnapshot<TProgress, TOutput>,
},
Completed {
snapshot: OperationSnapshot<TProgress, TOutput>,
},
Failed {
snapshot: OperationSnapshot<TProgress, TOutput>,
},
Cancelled {
snapshot: OperationSnapshot<TProgress, TOutput>,
},
}Variants§
Accepted
Fields
§
snapshot: OperationSnapshot<TProgress, TOutput>Started
Fields
§
snapshot: OperationSnapshot<TProgress, TOutput>Progress
Fields
§
snapshot: OperationSnapshot<TProgress, TOutput>Completed
Fields
§
snapshot: OperationSnapshot<TProgress, TOutput>Failed
Fields
§
snapshot: OperationSnapshot<TProgress, TOutput>Cancelled
Fields
§
snapshot: OperationSnapshot<TProgress, TOutput>Trait Implementations§
Source§impl<TProgress: Clone, TOutput: Clone> Clone for OperationEvent<TProgress, TOutput>
impl<TProgress: Clone, TOutput: Clone> Clone for OperationEvent<TProgress, TOutput>
Source§fn clone(&self) -> OperationEvent<TProgress, TOutput>
fn clone(&self) -> OperationEvent<TProgress, TOutput>
Returns a duplicate 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<'de, TProgress, TOutput> Deserialize<'de> for OperationEvent<TProgress, TOutput>where
TProgress: Deserialize<'de>,
TOutput: Deserialize<'de>,
impl<'de, TProgress, TOutput> Deserialize<'de> for OperationEvent<TProgress, TOutput>where
TProgress: Deserialize<'de>,
TOutput: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<TProgress: PartialEq, TOutput: PartialEq> PartialEq for OperationEvent<TProgress, TOutput>
impl<TProgress: PartialEq, TOutput: PartialEq> PartialEq for OperationEvent<TProgress, TOutput>
Source§fn eq(&self, other: &OperationEvent<TProgress, TOutput>) -> bool
fn eq(&self, other: &OperationEvent<TProgress, TOutput>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<TProgress, TOutput> Serialize for OperationEvent<TProgress, TOutput>
impl<TProgress, TOutput> Serialize for OperationEvent<TProgress, TOutput>
impl<TProgress, TOutput> StructuralPartialEq for OperationEvent<TProgress, TOutput>
Auto Trait Implementations§
impl<TProgress, TOutput> Freeze for OperationEvent<TProgress, TOutput>
impl<TProgress, TOutput> RefUnwindSafe for OperationEvent<TProgress, TOutput>where
TProgress: RefUnwindSafe,
TOutput: RefUnwindSafe,
impl<TProgress, TOutput> Send for OperationEvent<TProgress, TOutput>
impl<TProgress, TOutput> Sync for OperationEvent<TProgress, TOutput>
impl<TProgress, TOutput> Unpin for OperationEvent<TProgress, TOutput>
impl<TProgress, TOutput> UnsafeUnpin for OperationEvent<TProgress, TOutput>where
TProgress: UnsafeUnpin,
TOutput: UnsafeUnpin,
impl<TProgress, TOutput> UnwindSafe for OperationEvent<TProgress, TOutput>where
TProgress: UnwindSafe,
TOutput: 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