pub enum TaskState<V, P>where
P: Progressible,{
Pending(P),
Done(V),
}
Expand description
Representation of a task’s state.
Variants§
Pending(P)
The task is not finished yet and holds its current progress.
Done(V)
The task is done with a value of type V.
Trait Implementations§
impl<V: Eq, P> Eq for TaskState<V, P>where
P: Progressible + Eq,
impl<V, P> StructuralPartialEq for TaskState<V, P>where
P: Progressible,
Auto Trait Implementations§
impl<V, P> Freeze for TaskState<V, P>
impl<V, P> RefUnwindSafe for TaskState<V, P>where
P: RefUnwindSafe,
V: RefUnwindSafe,
impl<V, P> Send for TaskState<V, P>
impl<V, P> Sync for TaskState<V, P>
impl<V, P> Unpin for TaskState<V, P>
impl<V, P> UnwindSafe for TaskState<V, P>where
P: UnwindSafe,
V: 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