pub enum State {
NotInitialized,
Pending,
Completed,
TaskPanicked(String),
CallbackPanicked(String),
}Expand description
Represents the current state of an asynchronous task.
Variants§
NotInitialized
The task hasn’t been started yet.
Pending
The task is currently running.
Completed
The task has completed successfully and returned a value.
TaskPanicked(String)
The task panicked during execution.
CallbackPanicked(String)
The callback panicked during execution.
Trait Implementations§
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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