pub enum SessionClosedReason {
ClientClose,
Error,
ServerLost,
}Variants§
ClientClose
Client closed the session, the is the normal termination
Error
Sess ends with error
ServerLost
When server starts and reuses existing log, it find open sessions and write this close reason This means that the real closing time of the session is not know and original server probably crashed
Trait Implementations§
Source§impl Clone for SessionClosedReason
impl Clone for SessionClosedReason
Source§fn clone(&self) -> SessionClosedReason
fn clone(&self) -> SessionClosedReason
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 SessionClosedReason
impl Debug for SessionClosedReason
Source§impl<'de> Deserialize<'de> for SessionClosedReason
impl<'de> Deserialize<'de> for SessionClosedReason
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
Auto Trait Implementations§
impl Freeze for SessionClosedReason
impl RefUnwindSafe for SessionClosedReason
impl Send for SessionClosedReason
impl Sync for SessionClosedReason
impl Unpin for SessionClosedReason
impl UnsafeUnpin for SessionClosedReason
impl UnwindSafe for SessionClosedReason
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