pub enum WorkerState {
Running,
BackingOff,
Failed,
}Expand description
Lifecycle state of a supervised worker.
Variants§
Running
The worker’s task is running.
BackingOff
The worker ended and its restart policy is waiting out a backoff.
Failed
The worker ended terminally: no restart policy, or the policy’s restart bound was exceeded.
Implementations§
Trait Implementations§
Source§impl Clone for WorkerState
impl Clone for WorkerState
impl Copy for WorkerState
Source§impl Debug for WorkerState
impl Debug for WorkerState
impl Eq for WorkerState
Source§impl PartialEq for WorkerState
impl PartialEq for WorkerState
impl StructuralPartialEq for WorkerState
Auto Trait Implementations§
impl Freeze for WorkerState
impl RefUnwindSafe for WorkerState
impl Send for WorkerState
impl Sync for WorkerState
impl Unpin for WorkerState
impl UnsafeUnpin for WorkerState
impl UnwindSafe for WorkerState
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.