Struct libp2p_swarm::SwarmPollParameters[][src]

pub struct SwarmPollParameters<'a> { /* fields omitted */ }
Expand description

Parameters passed to poll(), that the NetworkBehaviour has access to.

Trait Implementations

Iterator returned by supported_protocols.

Iterator returned by listened_addresses.

Iterator returned by external_addresses.

Returns the list of protocol the behaviour supports when a remote negotiates a protocol on an inbound substream. Read more

Returns the list of the addresses we’re listening on.

Returns the list of the addresses nodes can use to reach us.

Returns the peer id of the local node.

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.