Struct libp2p_swarm::dial_opts::WithPeerIdWithAddresses
source · pub struct WithPeerIdWithAddresses { /* private fields */ }
Implementations§
source§impl WithPeerIdWithAddresses
impl WithPeerIdWithAddresses
sourcepub fn condition(self, condition: PeerCondition) -> Self
pub fn condition(self, condition: PeerCondition) -> Self
Specify a PeerCondition
for the dial.
sourcepub fn extend_addresses_through_behaviour(self) -> Self
pub fn extend_addresses_through_behaviour(self) -> Self
In addition to the provided addresses, extend the set via
NetworkBehaviour::addresses_of_peer
.
sourcepub fn override_role(self) -> Self
pub fn override_role(self) -> Self
Override role of local node on connection. I.e. execute the dial as a listener.
See
ConnectedPoint::Dialer
for details.
sourcepub fn override_dial_concurrency_factor(self, factor: NonZeroU8) -> Self
pub fn override_dial_concurrency_factor(self, factor: NonZeroU8) -> Self
Override Number of addresses concurrently dialed for a single outbound connection attempt.