pub enum LifecycleState {
Created,
Starting,
Running,
Stopping,
Stopped,
Error(String),
}
Expand description
Server lifecycle state
Variants§
Created
Server is created but not yet started
Starting
Server is starting up
Running
Server is running and ready to handle requests
Stopping
Server is gracefully shutting down
Stopped
Server has stopped
Error(String)
Server encountered an error
Trait Implementations§
Source§impl Clone for LifecycleState
impl Clone for LifecycleState
Source§fn clone(&self) -> LifecycleState
fn clone(&self) -> LifecycleState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LifecycleState
impl Debug for LifecycleState
Source§impl PartialEq for LifecycleState
impl PartialEq for LifecycleState
impl StructuralPartialEq for LifecycleState
Auto Trait Implementations§
impl Freeze for LifecycleState
impl RefUnwindSafe for LifecycleState
impl Send for LifecycleState
impl Sync for LifecycleState
impl Unpin for LifecycleState
impl UnwindSafe for LifecycleState
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