pub(crate) enum SessionEnd {
Shutdown,
Lost {
reason: String,
was_connected: bool,
},
}Expand description
How a single connection session ended.
Variants§
Shutdown
Lost
Connection lost. was_connected tells whether this session got connected
at all: a failed reconnect attempt is not a new disconnect.
Auto Trait Implementations§
impl Freeze for SessionEnd
impl RefUnwindSafe for SessionEnd
impl Send for SessionEnd
impl Sync for SessionEnd
impl Unpin for SessionEnd
impl UnsafeUnpin for SessionEnd
impl UnwindSafe for SessionEnd
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