pub enum SupervisorState {
Starting,
Ready,
WaitingRestart,
AwaitingDemand,
Exhausted,
Stopped,
}Expand description
What the supervisor is doing now.
Variants§
Starting
A child is running and has not yet answered a probe.
Ready
A child is running and has answered a probe.
WaitingRestart
The child is gone and the next start is waiting out its backoff.
AwaitingDemand
The child is gone and the policy waits for SupervisorHandle::restart_now.
Exhausted
The restart budget is spent; nothing runs until SupervisorHandle::restart_now.
Stopped
The policy never restarts and the child is gone, or the supervisor has stopped.
Trait Implementations§
Source§impl Clone for SupervisorState
impl Clone for SupervisorState
impl Copy for SupervisorState
Source§impl Debug for SupervisorState
impl Debug for SupervisorState
impl Eq for SupervisorState
Source§impl PartialEq for SupervisorState
impl PartialEq for SupervisorState
impl StructuralPartialEq for SupervisorState
Auto Trait Implementations§
impl Freeze for SupervisorState
impl RefUnwindSafe for SupervisorState
impl Send for SupervisorState
impl Sync for SupervisorState
impl Unpin for SupervisorState
impl UnsafeUnpin for SupervisorState
impl UnwindSafe for SupervisorState
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