Enum libp2p::mdns::MdnsEvent[][src]

pub enum MdnsEvent {
    Discovered(DiscoveredAddrsIter),
    Expired(ExpiredAddrsIter),
}

Event that can be produced by the Mdns behaviour.

Variants

Discovered(DiscoveredAddrsIter)

Discovered nodes through mDNS.

Expired(ExpiredAddrsIter)

The given combinations of PeerId and Multiaddr have expired.

Each discovered record has a time-to-live. When this TTL expires and the address hasn’t been refreshed, we remove it from the list and emit it as an Expired event.

Trait Implementations

impl Debug for MdnsEvent[src]

Auto Trait Implementations

impl RefUnwindSafe for MdnsEvent

impl Send for MdnsEvent

impl Sync for MdnsEvent

impl Unpin for MdnsEvent

impl UnwindSafe for MdnsEvent

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]