pub enum RestartMode {
Never,
OnFailure,
Always,
}Expand description
Conditions under which a managed service may restart.
Variants§
Never
Never restart automatically.
OnFailure
Restart only after a failed health signal or unexpected exit.
Always
Restart after any unexpected service exit.
Trait Implementations§
Source§impl Clone for RestartMode
impl Clone for RestartMode
Source§fn clone(&self) -> RestartMode
fn clone(&self) -> RestartMode
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 moreimpl Copy for RestartMode
Source§impl Debug for RestartMode
impl Debug for RestartMode
impl Eq for RestartMode
Source§impl PartialEq for RestartMode
impl PartialEq for RestartMode
impl StructuralPartialEq for RestartMode
Auto Trait Implementations§
impl Freeze for RestartMode
impl RefUnwindSafe for RestartMode
impl Send for RestartMode
impl Sync for RestartMode
impl Unpin for RestartMode
impl UnsafeUnpin for RestartMode
impl UnwindSafe for RestartMode
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