pub enum ShutdownReason {
Requested,
Quit,
Disconnect,
ProtocolViolation,
}Expand description
Why the session ended.
Variants§
Requested
The client sent shutdown.
Quit
The editor quit through its own grammar (:q, quit intent).
Disconnect
The client link closed or died.
ProtocolViolation
Frame-level corruption poisoned the stream.
Trait Implementations§
Source§impl Clone for ShutdownReason
impl Clone for ShutdownReason
impl Copy for ShutdownReason
Source§impl Debug for ShutdownReason
impl Debug for ShutdownReason
Source§impl<'de> Deserialize<'de> for ShutdownReason
impl<'de> Deserialize<'de> for ShutdownReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ShutdownReason
Source§impl PartialEq for ShutdownReason
impl PartialEq for ShutdownReason
Source§impl Serialize for ShutdownReason
impl Serialize for ShutdownReason
impl StructuralPartialEq for ShutdownReason
Auto Trait Implementations§
impl Freeze for ShutdownReason
impl RefUnwindSafe for ShutdownReason
impl Send for ShutdownReason
impl Sync for ShutdownReason
impl Unpin for ShutdownReason
impl UnsafeUnpin for ShutdownReason
impl UnwindSafe for ShutdownReason
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