[][src]Module susyp2p_kad::protocol

Provides the KadRequestMsg and KadResponseMsg enums of all the possible messages transmitted with the Kademlia protocol, and the KademliaProtocolConfig connection upgrade.

The upgrade's output a Sink + Stream of messages.

The Stream component is used to poll the underlying transport, and the Sink component is used to send messages.

Structs

KadPeer

Information about a peer, as known by the sender.

KademliaProtocolConfig

Configuration for a Kademlia connection upgrade. When applied to a connection, turns this connection into a Stream + Sink whose items are of type KadRequestMsg and KadResponseMsg.

Enums

KadConnectionType

Status of our connection to a node reported by the Kademlia protocol.

KadRequestMsg

Request that we can send to a peer or that we received from a peer.

KadResponseMsg

Response that we can send to a peer or that we received from a peer.

Type Definitions

KadInStreamSink

Sink of responses and stream of requests.

KadOutStreamSink

Sink of requests and stream of responses.