pub enum AsyncTaskStatus {
Pending,
Completed,
Failed,
Cancelled,
}Expand description
Lifecycle state of an async task.
Variants§
Pending
Submitted, running in the background.
Completed
Finished successfully (final result reinjected into history).
Failed
Finished with an error result.
Cancelled
Cancelled before completion.
Implementations§
Trait Implementations§
Source§impl Clone for AsyncTaskStatus
impl Clone for AsyncTaskStatus
Source§fn clone(&self) -> AsyncTaskStatus
fn clone(&self) -> AsyncTaskStatus
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 moreimpl Copy for AsyncTaskStatus
Source§impl Debug for AsyncTaskStatus
impl Debug for AsyncTaskStatus
impl Eq for AsyncTaskStatus
Source§impl PartialEq for AsyncTaskStatus
impl PartialEq for AsyncTaskStatus
impl StructuralPartialEq for AsyncTaskStatus
Auto Trait Implementations§
impl Freeze for AsyncTaskStatus
impl RefUnwindSafe for AsyncTaskStatus
impl Send for AsyncTaskStatus
impl Sync for AsyncTaskStatus
impl Unpin for AsyncTaskStatus
impl UnsafeUnpin for AsyncTaskStatus
impl UnwindSafe for AsyncTaskStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.