pub enum ChildState {
Running,
Stopping,
Stopped {
reason: ExitReason,
},
Restarting {
attempt: u32,
},
}Expand description
State of a supervised child.
Variants§
Running
Child is running normally.
Stopping
Child is being stopped.
Stopped
Child has stopped.
Fields
§
reason: ExitReasonWhy the child stopped.
Restarting
Child is being restarted.
Implementations§
Trait Implementations§
Source§impl Clone for ChildState
impl Clone for ChildState
Auto Trait Implementations§
impl Freeze for ChildState
impl RefUnwindSafe for ChildState
impl Send for ChildState
impl Sync for ChildState
impl Unpin for ChildState
impl UnsafeUnpin for ChildState
impl UnwindSafe for ChildState
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