#[non_exhaustive]pub struct LinkInfo {Show 18 fields
pub sid: Option<String>,
pub engine_sid: Option<String>,
pub transport: Option<TransportKind>,
pub ping_interval: Option<Duration>,
pub ping_timeout: Option<Duration>,
pub max_payload: Option<u64>,
pub connected_at: Option<Instant>,
pub last_packet_at: Option<Instant>,
pub last_ping_at: Option<Instant>,
pub last_attempt_at: Option<Instant>,
pub reconnect_attempts: u32,
pub pending_acks: usize,
pub buffered_emits: usize,
pub packets_out: u64,
pub packets_in: u64,
pub bytes_out: u64,
pub bytes_in: u64,
pub sessions: u32,
}Expand description
A snapshot of the link for health checks and debugging.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sid: Option<String>The socket id (socket.id) while connected.
engine_sid: Option<String>The engine.io session id while connected.
transport: Option<TransportKind>The transport in use while connected.
ping_interval: Option<Duration>pingInterval from the last handshake.
ping_timeout: Option<Duration>pingTimeout from the last handshake.
max_payload: Option<u64>maxPayload from the last handshake.
connected_at: Option<Instant>When the current connection was established.
last_packet_at: Option<Instant>When the last engine.io packet of any kind arrived.
last_ping_at: Option<Instant>When the last ping arrived.
last_attempt_at: Option<Instant>When the last connect attempt started.
reconnect_attempts: u32Reconnect attempts since the last successful connect.
pending_acks: usizeAcks waiting for the server.
buffered_emits: usizeEmits queued while disconnected (buffer_while_disconnected).
packets_out: u64Engine.io message packets sent (socket.io packets and their binary attachments).
packets_in: u64Engine.io message packets received.
bytes_out: u64Bytes of those packets sent (encoded socket.io text plus raw attachments).
bytes_in: u64Bytes of those packets received.
sessions: u32Successful connects (the first one and every reconnect) of this client.