Enum libp2p::rendezvous::server::Event[][src]

pub enum Event {
    DiscoverServed {
        enquirer: PeerId,
        registrations: Vec<Registration, Global>,
    },
    DiscoverNotServed {
        enquirer: PeerId,
        error: ErrorCode,
    },
    PeerRegistered {
        peer: PeerId,
        registration: Registration,
    },
    PeerNotRegistered {
        peer: PeerId,
        namespace: Namespace,
        error: ErrorCode,
    },
    PeerUnregistered {
        peer: PeerId,
        namespace: Namespace,
    },
    RegistrationExpired(Registration),
}

Variants

DiscoverServed

We successfully served a discover request from a peer.

Fields of DiscoverServed

enquirer: PeerIdregistrations: Vec<Registration, Global>
DiscoverNotServed

We failed to serve a discover request for a peer.

Fields of DiscoverNotServed

enquirer: PeerIderror: ErrorCode
PeerRegistered

A peer successfully registered with us.

Fields of PeerRegistered

peer: PeerIdregistration: Registration
PeerNotRegistered

We declined a registration from a peer.

Fields of PeerNotRegistered

peer: PeerIdnamespace: Namespaceerror: ErrorCode
PeerUnregistered

A peer successfully unregistered with us.

Fields of PeerUnregistered

peer: PeerIdnamespace: Namespace
RegistrationExpired(Registration)

A registration from a peer expired.

Tuple Fields of RegistrationExpired

0: Registration

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.