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

Variants

Discovered

Fields

rendezvous_node: PeerId
registrations: Vec<Registration, Global>
cookie: Cookie

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

DiscoverFailed

Fields

rendezvous_node: PeerId
namespace: Option<Namespace>
error: ErrorCode

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

Registered

Fields

rendezvous_node: PeerId
ttl: u64
namespace: Namespace

We successfully registered with the contained rendezvous node.

RegisterFailed(RegisterError)

We failed to register with the contained rendezvous node.

Expired

Fields

peer: PeerId

The connection details we learned from this node expired.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.