Struct libp2p::swarm::SwarmPollParameters [−][src]
pub struct SwarmPollParameters<'a> { /* fields omitted */ }
Parameters passed to poll()
, that the NetworkBehaviour
has access to.
Trait Implementations
impl<'a> PollParameters for SwarmPollParameters<'a>
[src]
impl<'a> PollParameters for SwarmPollParameters<'a>
[src]type SupportedProtocolsIter = IntoIter<Vec<u8, Global>, Global>
Iterator returned by supported_protocols
.
type ListenedAddressesIter = IntoIter<Multiaddr, Global>
Iterator returned by listened_addresses
.
type ExternalAddressesIter = AddressIntoIter
Iterator returned by external_addresses
.
pub fn supported_protocols(
&self
) -> <SwarmPollParameters<'a> as PollParameters>::SupportedProtocolsIter
[src]
&self
) -> <SwarmPollParameters<'a> as PollParameters>::SupportedProtocolsIter
pub fn listened_addresses(
&self
) -> <SwarmPollParameters<'a> as PollParameters>::ListenedAddressesIter
[src]
&self
) -> <SwarmPollParameters<'a> as PollParameters>::ListenedAddressesIter
pub fn external_addresses(
&self
) -> <SwarmPollParameters<'a> as PollParameters>::ExternalAddressesIter
[src]
&self
) -> <SwarmPollParameters<'a> as PollParameters>::ExternalAddressesIter