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

FindNode

Request for the list of nodes whose IDs are the closest to key.

Fields of FindNode

num_closer_peers: usize
GetProvider

Same as FindNode, but should also return the entries of the local providers list for this key.

Fields of GetProvider

num_closer_peers: usizenum_provider_peers: usize
AddProvider

Request to store a peer as a provider.

Fields of AddProvider

GetRecord

Request to retrieve a record.

Fields of GetRecord

num_closer_peers: usizepresent_locally: bool
PutRecord

Request to store a record.

Fields of PutRecord

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.