pub enum DiscoveryKind {
LookupStarted(Endpoint),
LookupFailed(Endpoint),
LookupSucceeded(Endpoint, usize),
RefreshStarted,
RefreshSucceeded(usize),
RefreshFailed,
EntryEvicted(PeerID),
}Expand description
Discovery (Kademlia) events.
Variants§
LookupStarted(Endpoint)
LookupFailed(Endpoint)
LookupSucceeded(Endpoint, usize)
RefreshStarted
RefreshSucceeded(usize)
Refresh sweep completed. Carries the number of entries pinged.
RefreshFailed
EntryEvicted(PeerID)
Routing-table entry evicted after exceeding the failure budget.
Implementations§
Source§impl DiscoveryKind
impl DiscoveryKind
pub(super) fn get_endpoint(&self) -> Option<&Endpoint>
pub(super) fn get_size(&self) -> Option<usize>
pub(super) fn get_peer_id(&self) -> Option<&PeerID>
pub(super) fn variant_name(&self) -> &'static str
Trait Implementations§
Source§impl Clone for DiscoveryKind
impl Clone for DiscoveryKind
Source§fn clone(&self) -> DiscoveryKind
fn clone(&self) -> DiscoveryKind
Returns a duplicate 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 moreSource§impl Debug for DiscoveryKind
impl Debug for DiscoveryKind
Source§impl From<DiscoveryKind> for DiscoveryEvent
impl From<DiscoveryKind> for DiscoveryEvent
Source§fn from(event: DiscoveryKind) -> Self
fn from(event: DiscoveryKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DiscoveryKind
impl RefUnwindSafe for DiscoveryKind
impl Send for DiscoveryKind
impl Sync for DiscoveryKind
impl Unpin for DiscoveryKind
impl UnsafeUnpin for DiscoveryKind
impl UnwindSafe for DiscoveryKind
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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