pub enum KadResult {
Complete,
Peers(Vec<PeerId>),
Records(Vec<Record>),
Record(Record),
}Expand description
Represents the result of a Kademlia query.
Variants§
Complete
The query has been exhausted.
Peers(Vec<PeerId>)
The query successfully returns GetClosestPeers or GetProviders results.
Records(Vec<Record>)
The query successfully returns a GetRecord result.
Record(Record)
Trait Implementations§
source§impl PartialEq for KadResult
impl PartialEq for KadResult
impl Eq for KadResult
impl StructuralPartialEq for KadResult
Auto Trait Implementations§
impl !Freeze for KadResult
impl RefUnwindSafe for KadResult
impl Send for KadResult
impl Sync for KadResult
impl Unpin for KadResult
impl UnwindSafe for KadResult
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.