Skip to main content

Module connection

Module connection 

Source
Expand description

Per-peer connection API returned by crate::listener::Listener.

Connection offers message-oriented send/recv methods. ConnectionIo adapts it to Tokio AsyncRead / AsyncWrite.

Modules§

queue

Structs§

Connection
ConnectionId
Stable identifier for a Connection.
ConnectionIo
Tokio AsyncRead/AsyncWrite adapter over Connection.
ConnectionMetadata
Immutable connection identity snapshot.

Enums§

ConnectionCloseReason
Local close reason recorded by Connection.
RecvError
Receive-side errors from Connection::recv / Connection::recv_bytes.
RemoteDisconnectReason
Remote-side reason mapped from RakNet disconnect semantics.