pub struct Link {Show 18 fields
pub sid: Option<String>,
pub engine_sid: Option<String>,
pub transport: Option<&'static str>,
pub ping_interval: Option<u64>,
pub ping_timeout: Option<u64>,
pub max_payload: Option<u64>,
pub connected_at: Option<u64>,
pub last_packet_at: Option<u64>,
pub last_ping_at: Option<u64>,
pub last_attempt_at: Option<u64>,
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
LinkInfo for JS: durations in ms, instants as Unix epoch ms.
Fields§
§sid: Option<String>socket.id while connected.
engine_sid: Option<String>The engine.io session id while connected.
transport: Option<&'static str>"polling" or "websocket" while connected.
ping_interval: Option<u64>pingInterval (ms) of the last handshake.
ping_timeout: Option<u64>pingTimeout (ms) of the last handshake.
max_payload: Option<u64>maxPayload of the last handshake.
connected_at: Option<u64>When the current connection was established (epoch ms).
last_packet_at: Option<u64>When the last engine.io packet arrived (epoch ms).
last_ping_at: Option<u64>When the last ping arrived (epoch ms).
last_attempt_at: Option<u64>When the last connect attempt started (epoch ms).
reconnect_attempts: u32Reconnect attempts since the last connect.
pending_acks: usizeAcks waiting for the server.
buffered_emits: usizeEmits queued while disconnected.
packets_out: u64Engine.io message packets sent / received.
packets_in: u64See packets_out.
bytes_out: u64Bytes of those packets sent / received.
bytes_in: u64See bytes_out.
sessions: u32Successful connects of this client (first one and reconnects).
Trait Implementations§
Auto Trait Implementations§
impl Forget for Link
impl Freeze for Link
impl Move for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnsafeUnpin for Link
impl UnwindSafe for Link
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