Enum libp2p_kad::protocol::KadResponseMsg
source · pub enum KadResponseMsg {
Pong,
FindNode {
closer_peers: Vec<KadPeer>,
},
GetProviders {
closer_peers: Vec<KadPeer>,
provider_peers: Vec<KadPeer>,
},
GetValue {
record: Option<Record>,
closer_peers: Vec<KadPeer>,
},
PutValue {
key: Key,
value: Vec<u8>,
},
}
Expand description
Response that we can send to a peer or that we received from a peer.
Variants§
Pong
Ping response.
FindNode
Response to a FindNode
.
GetProviders
Fields
Response to a GetProviders
.
GetValue
Fields
Response to a GetValue
.
PutValue
Response to a PutValue
.
Trait Implementations§
source§impl Clone for KadResponseMsg
impl Clone for KadResponseMsg
source§fn clone(&self) -> KadResponseMsg
fn clone(&self) -> KadResponseMsg
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more