pub(super) enum SrvExit {
Shutdown,
WaitForMemory,
Respawn,
GiveUp,
GiveUpLowMemory,
}Expand description
What to do about an srv exit.
Variants§
Shutdown
It exited on purpose (clean exit, or a group-shutdown signal): the app is stopping.
WaitForMemory
The computer is out of memory: wait for it to recover, then start srv again.
Respawn
Start srv again and restart the window process.
GiveUp
It keeps stopping: end the app.
GiveUpLowMemory
The computer stayed out of memory too often: end the app.
Trait Implementations§
impl Eq for SrvExit
impl StructuralPartialEq for SrvExit
Auto Trait Implementations§
impl Freeze for SrvExit
impl RefUnwindSafe for SrvExit
impl Send for SrvExit
impl Sync for SrvExit
impl Unpin for SrvExit
impl UnsafeUnpin for SrvExit
impl UnwindSafe for SrvExit
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.