pub enum DiscvEvent {
LookupStarted(Endpoint),
LookupFailed(Endpoint),
LookupSucceeded(Endpoint, usize),
RefreshStarted,
}
Expand description
Defines Discovery
events.
Variants§
Implementations§
Source§impl DiscvEvent
impl DiscvEvent
pub(super) fn get_endpoint_and_size(&self) -> (Option<&Endpoint>, Option<usize>)
pub(super) fn variant_name(&self) -> &'static str
Trait Implementations§
Source§impl Clone for DiscvEvent
impl Clone for DiscvEvent
Source§fn clone(&self) -> DiscvEvent
fn clone(&self) -> DiscvEvent
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 moreSource§impl Debug for DiscvEvent
impl Debug for DiscvEvent
Source§impl From<DiscvEvent> for DiscoveryEvent
impl From<DiscvEvent> for DiscoveryEvent
Source§fn from(event: DiscvEvent) -> Self
fn from(event: DiscvEvent) -> Self
Converts to this type from the input type.
Source§impl ToEventStruct for DiscvEvent
impl ToEventStruct for DiscvEvent
type EventStruct = DiscoveryEvent
fn to_struct(self) -> Self::EventStruct
Auto Trait Implementations§
impl Freeze for DiscvEvent
impl RefUnwindSafe for DiscvEvent
impl Send for DiscvEvent
impl Sync for DiscvEvent
impl Unpin for DiscvEvent
impl UnwindSafe for DiscvEvent
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