Enum libp2p::kad::protocol::KadResponseMsg [−][src]
pub enum KadResponseMsg { Pong, FindNode { closer_peers: Vec<KadPeer, Global>, }, GetProviders { closer_peers: Vec<KadPeer, Global>, provider_peers: Vec<KadPeer, Global>, }, GetValue { record: Option<Record>, closer_peers: Vec<KadPeer, Global>, }, PutValue { key: Key, value: Vec<u8, Global>, }, }
Response that we can send to a peer or that we received from a peer.
Variants
Ping response.
Response to a FindNode
.
Response to a GetProviders
.
Show fields
Response to a GetValue
.
Show fields
Response to a PutValue
.
Show fields
Trait Implementations
impl Clone for KadResponseMsg
[src]
impl Clone for KadResponseMsg
[src]pub fn clone(&self) -> KadResponseMsg
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for KadResponseMsg
[src]
impl Debug for KadResponseMsg
[src]impl PartialEq<KadResponseMsg> for KadResponseMsg
[src]
impl PartialEq<KadResponseMsg> for KadResponseMsg
[src]