pub struct ConnectionInfo {
pub client_id: ClientId,
pub session_id: SessionId,
pub connection_id: ConnectionId,
pub cycle_id: CycleId,
pub attempt_id: AttemptId,
pub connected_at: SystemTime,
pub credential_version: Option<String>,
}Expand description
Identity and timing information for one established WebSocket connection.
A reconnecting logical session receives a new physical connection ID.
Debug reports only the byte length of the credential version and never its content.
Fields§
§client_id: ClientIdThe client instance ID that established this connection.
session_id: SessionIdLogical session identifier; it remains stable across reconnects.
connection_id: ConnectionIdIdentifier of this physical connection.
cycle_id: CycleIdIdentifier of the connect or reconnect cycle that generated this connection.
attempt_id: AttemptIdIdentifier of the handshake attempt that established this connection.
connected_at: SystemTimeThe system time when the connection was successfully established.
credential_version: Option<String>Optional credential version used for this handshake, returned by the dynamic handshake provider.
Trait Implementations§
Source§impl Clone for ConnectionInfo
impl Clone for ConnectionInfo
Auto Trait Implementations§
impl Freeze for ConnectionInfo
impl RefUnwindSafe for ConnectionInfo
impl Send for ConnectionInfo
impl Sync for ConnectionInfo
impl Unpin for ConnectionInfo
impl UnsafeUnpin for ConnectionInfo
impl UnwindSafe for ConnectionInfo
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