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
.
type ListenedAddressesIter = IntoIter<Multiaddr, Global>
type ListenedAddressesIter = IntoIter<Multiaddr, Global>
Iterator returned by listened_addresses
.
type ExternalAddressesIter = AddressIntoIter
type ExternalAddressesIter = AddressIntoIter
Iterator returned by external_addresses
.
pub fn supported_protocols(
&self
) -> <SwarmPollParameters<'a> as PollParameters>::SupportedProtocolsIter
pub fn supported_protocols(
&self
) -> <SwarmPollParameters<'a> as PollParameters>::SupportedProtocolsIter
Returns the list of protocol the behaviour supports when a remote negotiates a protocol on an inbound substream. Read more
pub fn listened_addresses(
&self
) -> <SwarmPollParameters<'a> as PollParameters>::ListenedAddressesIter
pub fn listened_addresses(
&self
) -> <SwarmPollParameters<'a> as PollParameters>::ListenedAddressesIter
Returns the list of the addresses we’re listening on.
pub fn external_addresses(
&self
) -> <SwarmPollParameters<'a> as PollParameters>::ExternalAddressesIter
pub fn external_addresses(
&self
) -> <SwarmPollParameters<'a> as PollParameters>::ExternalAddressesIter
Returns the list of the addresses nodes can use to reach us.
Returns the peer id of the local node.
Auto Trait Implementations
impl<'a> RefUnwindSafe for SwarmPollParameters<'a>
impl<'a> Send for SwarmPollParameters<'a>
impl<'a> Sync for SwarmPollParameters<'a>
impl<'a> Unpin for SwarmPollParameters<'a>
impl<'a> UnwindSafe for SwarmPollParameters<'a>