pub enum LifecycleCommand {
Start,
Stop,
Suspend,
Resume,
Health,
}Expand description
Command carried by a FrameKind::Lifecycle frame.
Variants§
Start
Start the server.
Stop
Stop the server.
Suspend
Suspend serving without tearing down.
Resume
Resume a suspended server.
Health
Request a health report.
Trait Implementations§
Source§impl Clone for LifecycleCommand
impl Clone for LifecycleCommand
Source§fn clone(&self) -> LifecycleCommand
fn clone(&self) -> LifecycleCommand
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 LifecycleCommand
Source§impl Debug for LifecycleCommand
impl Debug for LifecycleCommand
impl Eq for LifecycleCommand
Source§impl PartialEq for LifecycleCommand
impl PartialEq for LifecycleCommand
Source§fn eq(&self, other: &LifecycleCommand) -> bool
fn eq(&self, other: &LifecycleCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LifecycleCommand
Auto Trait Implementations§
impl Freeze for LifecycleCommand
impl RefUnwindSafe for LifecycleCommand
impl Send for LifecycleCommand
impl Sync for LifecycleCommand
impl Unpin for LifecycleCommand
impl UnsafeUnpin for LifecycleCommand
impl UnwindSafe for LifecycleCommand
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