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
Source§fn clone(&self) -> ChildState
fn clone(&self) -> ChildState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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