pub(super) enum SrvAction {
Stop(i32),
GiveUp(i32),
Restart {
why: SrvStop,
wait_for_memory: bool,
},
}Expand description
What the supervisor does next about an srv exit.
Variants§
Stop(i32)
End the launcher with this exit code (already logged, and recorded when it is a give-up).
GiveUp(i32)
End the launcher with this exit code because srv keeps crashing past its restart budget:
as SrvAction::Stop, and the version is one the user may want to go back from.
Restart
Start srv again; wait_for_memory first when the computer is out of memory.
Auto Trait Implementations§
impl Freeze for SrvAction
impl RefUnwindSafe for SrvAction
impl Send for SrvAction
impl Sync for SrvAction
impl Unpin for SrvAction
impl UnsafeUnpin for SrvAction
impl UnwindSafe for SrvAction
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.