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
.
Show fields
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.
Show fields
Fields of AddProvider
Request to retrieve a record.
Request to store a record.
Show fields
Fields of PutRecord
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for InboundRequest
impl Send for InboundRequest
impl Sync for InboundRequest
impl Unpin for InboundRequest
impl UnwindSafe for InboundRequest