Enum libp2p_kad::protocol::KadRequestMsg [−][src]
pub enum KadRequestMsg { Ping, FindNode { key: Vec<u8>, }, GetProviders { key: Key, }, AddProvider { key: Key, provider: KadPeer, }, GetValue { key: Key, }, PutValue { record: Record, }, }
Request that we can send to a peer or that we received from a peer.
Variants
Ping request.
Request for the list of nodes whose IDs are the closest to key
. The number of nodes
returned is not specified, but should be around 20.
Same as FindNode
, but should also return the entries of the local providers list for
this key.
Show fields
Fields of GetProviders
key: Key
Identifier being searched.
Indicates that this list of providers is known for this key.
Show fields
Request to get a value from the dht records.
Show fields
Fields of GetValue
key: Key
The key we are searching for.
Request to put a value into the dht records.
Show fields
Fields of PutValue
record: Record
Trait Implementations
impl Clone for KadRequestMsg
[src]
impl Clone for KadRequestMsg
[src]fn clone(&self) -> KadRequestMsg
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<KadRequestMsg> for KadRequestMsg
[src]
impl PartialEq<KadRequestMsg> for KadRequestMsg
[src]