Expand description

Peer manages a single connection to a remote peer after the initial connection establishment and handshake.

Its responsibilities include sending and receiving NetworkMessages over-the-wire, maintaining a completion queue of pending RPC requests (through the InboundRpcs and OutboundRpcs completion queues), and eventually shutting down when the PeerManager requests it or the connection is lost.

Peer owns the actual underlying connection socket and is reponsible for the socket’s shutdown, graceful or otherwise.

Structs

The Peer actor manages a single connection to another remote peer after the initial connection establishment and handshake.

Enums

The reason for closing a connection.

Notifications that Peer sends to the PeerManager.

Requests Peer receives from the PeerManager.