pub enum Event {
Show 19 variants NewListener(ListenerId), NewListenAddr(ListenerIdMultiaddr), ExpiredListenAddr(ListenerIdMultiaddr), ListenerError(ListenerIdString), ListenerClosed(ListenerId), NewExternalAddr(Multiaddr), ExpiredExternalAddr(Multiaddr), Discovered(PeerId), DialFailure(PeerIdMultiaddrString), Unreachable(PeerId), ConnectionEstablished(PeerIdConnectedPoint), ConnectionClosed(PeerIdConnectedPoint), AddressChanged(PeerIdConnectedPointConnectedPoint), Connected(PeerId), Disconnected(PeerId), Subscribed(PeerIdString), Unsubscribed(PeerIdString), Bootstrapped, NewInfo(PeerId),
}

Variants

NewListener(ListenerId)

a new listener has been created

NewListenAddr(ListenerIdMultiaddr)

the given listener started listening on this address

ExpiredListenAddr(ListenerIdMultiaddr)

the given listener stopped listening on this address

ListenerError(ListenerIdString)

the given listener experienced an error

ListenerClosed(ListenerId)

the given listener was closed

NewExternalAddr(Multiaddr)

we received an observed address for ourselves from a peer

ExpiredExternalAddr(Multiaddr)

an address observed earlier for ourselves has been retired since it was not refreshed

Discovered(PeerId)

an address was added for the given peer, following a successful dailling attempt

DialFailure(PeerIdMultiaddrString)

a dialling attempt for the given peer has failed

Unreachable(PeerId)

a peer could not be reached by any known address

ConnectionEstablished(PeerIdConnectedPoint)

a new connection has been opened to the given peer

ConnectionClosed(PeerIdConnectedPoint)

a connection to the given peer has been closed

AddressChanged(PeerIdConnectedPointConnectedPoint)

the given peer signaled that its address has changed

Connected(PeerId)

we are now connected to the given peer

Disconnected(PeerId)

the last connection to the given peer has been closed

Subscribed(PeerIdString)

the given peer subscribed to the given gossipsub or broadcast topic

Unsubscribed(PeerIdString)

the given peer unsubscribed from the given gossipsub or broadcast topic

Bootstrapped

NewInfo(PeerId)

the peer-info for the given peer has been updated with new information

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

Scrape the references from an impl Read. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more