pub struct PollParameters<'a, TTopology: 'a> { /* private fields */ }
Expand description

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

Implementations

Returns a reference to the topology of the network.

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

The iterator’s elements are the ASCII names as reported on the wire.

Note that the list is computed once at initialization and never refreshed.

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

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

Returns the public key of the local node.

Returns the peer id of the local node.

Calls the nat_traversal method on the underlying transport of the Swarm.

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.