Struct libp2p::swarm::dial_opts::WithPeerIdWithAddresses
source · pub struct WithPeerIdWithAddresses { /* private fields */ }
Implementations§
source§impl WithPeerIdWithAddresses
impl WithPeerIdWithAddresses
sourcepub fn condition(self, condition: PeerCondition) -> WithPeerIdWithAddresses
pub fn condition(self, condition: PeerCondition) -> WithPeerIdWithAddresses
Specify a PeerCondition
for the dial.
sourcepub fn extend_addresses_through_behaviour(self) -> WithPeerIdWithAddresses
pub fn extend_addresses_through_behaviour(self) -> WithPeerIdWithAddresses
In addition to the provided addresses, extend the set via
NetworkBehaviour::addresses_of_peer
.
sourcepub fn override_role(self) -> WithPeerIdWithAddresses
pub fn override_role(self) -> WithPeerIdWithAddresses
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
) -> WithPeerIdWithAddresses
pub fn override_dial_concurrency_factor( self, factor: NonZeroU8 ) -> WithPeerIdWithAddresses
Override Number of addresses concurrently dialed for a single outbound connection attempt.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for WithPeerIdWithAddresses
impl Send for WithPeerIdWithAddresses
impl Sync for WithPeerIdWithAddresses
impl Unpin for WithPeerIdWithAddresses
impl UnwindSafe for WithPeerIdWithAddresses
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more