pub struct ConnectionEvent {
pub sequence: u64,
pub client_id: ClientId,
pub session_id: SessionId,
pub occurred_at: SystemTime,
pub kind: ConnectionEventKind,
}Expand description
Lifecycle event generated by a connection session, with a session-local sequence number and event-specific payload.
Fields§
§sequence: u64A monotonically increasing event sequence number within the session, with the first event starting from 1.
client_id: ClientIdThe ID of the client instance that generated the event.
session_id: SessionIdLogical session identifier that generated the event.
occurred_at: SystemTimeThe system time recorded when the event occurred.
kind: ConnectionEventKindLifecycle fact and associated data recorded by this event.
Trait Implementations§
Source§impl Clone for ConnectionEvent
impl Clone for ConnectionEvent
Auto Trait Implementations§
impl !RefUnwindSafe for ConnectionEvent
impl !UnwindSafe for ConnectionEvent
impl Forget for ConnectionEvent
impl Freeze for ConnectionEvent
impl Move for ConnectionEvent
impl Send for ConnectionEvent
impl Sync for ConnectionEvent
impl Unpin for ConnectionEvent
impl UnsafeUnpin for ConnectionEvent
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