pub enum SessionEvent {
Opened {
session: SessionId,
at: Instant,
},
Negotiated {
session: SessionId,
at: Instant,
version: String,
echoed: bool,
},
Operating {
session: SessionId,
at: Instant,
},
Registered {
session: SessionId,
at: Instant,
id: RequestId,
method: Arc<str>,
origin: RequestOrigin,
},
Completed {
session: SessionId,
at: Instant,
id: RequestId,
method: Arc<str>,
},
Aborted {
session: SessionId,
at: Instant,
id: RequestId,
method: Arc<str>,
reason: AbortReason,
},
Refused {
session: SessionId,
at: Instant,
id: Option<RequestId>,
method: Arc<str>,
state: SessionState,
},
StateChanged {
session: SessionId,
at: Instant,
state: SessionState,
},
}Expand description
One thing that happened to a session.
Variants§
Opened
The session came into existence.
Negotiated
A protocol agreed what it speaks.
Fields
Operating
The peer confirmed the handshake and ordinary work became admissible.
Registered
A request became in flight.
Fields
§
origin: RequestOriginWhich side issued it.
Completed
A request finished and is no longer in flight.
Fields
Aborted
A request was aborted before it finished.
Fields
§
reason: AbortReasonWhy.
Refused
A request was refused before it ran.
Fields
§
state: SessionStateThe state the session was in, which is what made the refusal.
StateChanged
The session left the operating state, for any reason.
Implementations§
Trait Implementations§
Source§impl Clone for SessionEvent
impl Clone for SessionEvent
Source§impl Debug for SessionEvent
impl Debug for SessionEvent
Source§impl Display for SessionEvent
impl Display for SessionEvent
impl Eq for SessionEvent
Source§impl PartialEq for SessionEvent
impl PartialEq for SessionEvent
impl StructuralPartialEq for SessionEvent
Auto Trait Implementations§
impl Freeze for SessionEvent
impl RefUnwindSafe for SessionEvent
impl Send for SessionEvent
impl Sync for SessionEvent
impl Unpin for SessionEvent
impl UnsafeUnpin for SessionEvent
impl UnwindSafe for SessionEvent
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