pub enum ShutdownType {
Routine,
Error,
Unknown,
}Expand description
Whether the session ended normally (“routine”) or due to a crash/fatal error (“error”)
Variants§
Routine
The session ended normally.
Error
The session ended because of a crash or fatal error.
Unknown
Unknown variant for forward compatibility.
Trait Implementations§
Source§impl Clone for ShutdownType
impl Clone for ShutdownType
Source§fn clone(&self) -> ShutdownType
fn clone(&self) -> ShutdownType
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 moreSource§impl Debug for ShutdownType
impl Debug for ShutdownType
Source§impl Default for ShutdownType
impl Default for ShutdownType
Source§fn default() -> ShutdownType
fn default() -> ShutdownType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ShutdownType
impl<'de> Deserialize<'de> for ShutdownType
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 ShutdownType
Source§impl PartialEq for ShutdownType
impl PartialEq for ShutdownType
Source§fn eq(&self, other: &ShutdownType) -> bool
fn eq(&self, other: &ShutdownType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ShutdownType
impl Serialize for ShutdownType
impl StructuralPartialEq for ShutdownType
Auto Trait Implementations§
impl Freeze for ShutdownType
impl RefUnwindSafe for ShutdownType
impl Send for ShutdownType
impl Sync for ShutdownType
impl Unpin for ShutdownType
impl UnsafeUnpin for ShutdownType
impl UnwindSafe for ShutdownType
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