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
sourceimpl Clone for KadResponseMsg
impl Clone for KadResponseMsg
sourcefn clone(&self) -> KadResponseMsg
fn clone(&self) -> KadResponseMsg
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for KadResponseMsg
impl Debug for KadResponseMsg
sourceimpl PartialEq<KadResponseMsg> for KadResponseMsg
impl PartialEq<KadResponseMsg> for KadResponseMsg
sourcefn eq(&self, other: &KadResponseMsg) -> bool
fn eq(&self, other: &KadResponseMsg) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Eq for KadResponseMsg
impl StructuralEq for KadResponseMsg
impl StructuralPartialEq for KadResponseMsg
Auto Trait Implementations
impl RefUnwindSafe for KadResponseMsg
impl Send for KadResponseMsg
impl Sync for KadResponseMsg
impl Unpin for KadResponseMsg
impl UnwindSafe for KadResponseMsg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more