Enum libp2p_rendezvous::client::Event[][src]

pub enum Event {
    Discovered {
        rendezvous_node: PeerId,
        registrations: Vec<Registration>,
        cookie: Cookie,
    },
    DiscoverFailed {
        rendezvous_node: PeerId,
        namespace: Option<Namespace>,
        error: ErrorCode,
    },
    Registered {
        rendezvous_node: PeerId,
        ttl: Ttl,
        namespace: Namespace,
    },
    RegisterFailed(RegisterError),
    Expired {
        peer: PeerId,
    },
}

Variants

Discovered

We successfully discovered other nodes with using the contained rendezvous node.

Fields of Discovered

rendezvous_node: PeerIdregistrations: Vec<Registration>cookie: Cookie
DiscoverFailed

We failed to discover other nodes on the contained rendezvous node.

Fields of DiscoverFailed

rendezvous_node: PeerIdnamespace: Option<Namespace>error: ErrorCode
Registered

We successfully registered with the contained rendezvous node.

Fields of Registered

rendezvous_node: PeerIdttl: Ttlnamespace: Namespace
RegisterFailed(RegisterError)

We failed to register with the contained rendezvous node.

Tuple Fields of RegisterFailed

0: RegisterError
Expired

The connection details we learned from this node expired.

Fields of Expired

peer: PeerId

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.