Module libp2p_kad::protocol
source · 👎Deprecated: The
protocol
module will be made private in the future and should not be depended on.Structs
- Information about a peer, as known by the sender.
- Configuration for a Kademlia connection upgrade. When applied to a connection, turns this connection into a
Stream + Sink
whose items are of typeKadRequestMsg
andKadResponseMsg
.
Enums
- Status of our connection to a node reported by the Kademlia protocol.
- Request that we can send to a peer or that we received from a peer.
- Response that we can send to a peer or that we received from a peer.
Constants
- The default maximum size for a varint length-delimited packet.
- The protocol name used for negotiating with multistream-select.
Type Definitions
- Sink of responses and stream of requests.
- Sink of requests and stream of responses.