#[repr(u8)]pub enum WorkerStatus {
Running = 0,
Idle = 1,
Suspended = 2,
Interrupted = 3,
Retrying = 4,
Failed = 5,
Exited = 6,
}
Variants§
Running = 0
The worker is running an invoked function
Idle = 1
The worker is ready to run an invoked function
Suspended = 2
An invocation is active but waiting for something (sleeping, waiting for a promise)
Interrupted = 3
The last invocation was interrupted but will be resumed
Retrying = 4
The last invocation failed and a retry was scheduled
Failed = 5
The last invocation failed and the worker can no longer be used
Exited = 6
The worker exited after a successful invocation and can no longer be invoked
Trait Implementations§
Source§impl Clone for WorkerStatus
impl Clone for WorkerStatus
Source§fn clone(&self) -> WorkerStatus
fn clone(&self) -> WorkerStatus
Returns a copy 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 Debug for WorkerStatus
impl Debug for WorkerStatus
Source§impl Ord for WorkerStatus
impl Ord for WorkerStatus
Source§fn cmp(&self, other: &WorkerStatus) -> Ordering
fn cmp(&self, other: &WorkerStatus) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WorkerStatus
impl PartialEq for WorkerStatus
Source§impl PartialOrd for WorkerStatus
impl PartialOrd for WorkerStatus
impl Copy for WorkerStatus
impl Eq for WorkerStatus
impl StructuralPartialEq for WorkerStatus
Auto Trait Implementations§
impl Freeze for WorkerStatus
impl RefUnwindSafe for WorkerStatus
impl Send for WorkerStatus
impl Sync for WorkerStatus
impl Unpin for WorkerStatus
impl UnwindSafe for WorkerStatus
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