Enum libp2p_kad::KademliaOut
source · pub enum KademliaOut {
FindNodeResult {
key: PeerId,
closer_peers: Vec<PeerId>,
},
GetProvidersResult {
key: Multihash,
provider_peers: Vec<PeerId>,
closer_peers: Vec<PeerId>,
},
}
Expand description
Output event of the Kademlia
behaviour.
Variants
FindNodeResult
Fields
key: PeerId
The key that we looked for in the query.
Result of a FIND_NODE
iterative query.
GetProvidersResult
Fields
key: Multihash
The key that we looked for in the query.
Result of a GET_PROVIDERS
iterative query.
Trait Implementations
sourceimpl Clone for KademliaOut
impl Clone for KademliaOut
sourcefn clone(&self) -> KademliaOut
fn clone(&self) -> KademliaOut
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 moreAuto Trait Implementations
impl RefUnwindSafe for KademliaOut
impl Send for KademliaOut
impl Sync for KademliaOut
impl Unpin for KademliaOut
impl UnwindSafe for KademliaOut
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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