Enum libp2p::kad::InboundRequest [−][src]
pub enum InboundRequest {
FindNode {
num_closer_peers: usize,
},
GetProvider {
num_closer_peers: usize,
num_provider_peers: usize,
},
AddProvider {},
GetRecord {
num_closer_peers: usize,
present_locally: bool,
},
PutRecord {},
}
Expand description
Information about a received and handled inbound request.
Variants
Request for the list of nodes whose IDs are the closest to key
.
Fields of FindNode
num_closer_peers: usize
Same as FindNode
, but should also return the entries of the local
providers list for this key.
Request to store a peer as a provider.
Fields of AddProvider
Request to retrieve a record.
Request to store a record.