pub enum LifecycleEvent {
HandshakeStarted,
HandshakeConfirmed,
WentStateless,
CloseRequested,
Finished,
}Expand description
Something that happened to a session.
Variants§
HandshakeStarted
The peer offered its handshake.
HandshakeConfirmed
The peer confirmed the handshake result landed.
WentStateless
A message negotiated its own profile, so there is no handshake to wait for.
CloseRequested
A close was asked for.
Finished
The session finished.
Implementations§
Trait Implementations§
Source§impl Clone for LifecycleEvent
impl Clone for LifecycleEvent
impl Copy for LifecycleEvent
Source§impl Debug for LifecycleEvent
impl Debug for LifecycleEvent
Source§impl Display for LifecycleEvent
impl Display for LifecycleEvent
impl Eq for LifecycleEvent
Source§impl Hash for LifecycleEvent
impl Hash for LifecycleEvent
Source§impl PartialEq for LifecycleEvent
impl PartialEq for LifecycleEvent
impl StructuralPartialEq for LifecycleEvent
Auto Trait Implementations§
impl Freeze for LifecycleEvent
impl RefUnwindSafe for LifecycleEvent
impl Send for LifecycleEvent
impl Sync for LifecycleEvent
impl Unpin for LifecycleEvent
impl UnsafeUnpin for LifecycleEvent
impl UnwindSafe for LifecycleEvent
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