Struct WithPeerIdWithAddresses
pub struct WithPeerIdWithAddresses { /* private fields */ }Implementations§
§impl WithPeerIdWithAddresses
impl WithPeerIdWithAddresses
pub fn condition(self, condition: PeerCondition) -> WithPeerIdWithAddresses
pub fn condition(self, condition: PeerCondition) -> WithPeerIdWithAddresses
Specify a PeerCondition for the dial.
pub 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::handle_pending_outbound_connection.
pub 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.
pub fn allocate_new_port(self) -> WithPeerIdWithAddresses
pub fn allocate_new_port(self) -> WithPeerIdWithAddresses
Enforce the allocation of a new port. Default behaviour is best effort reuse of existing ports. If there is no existing fitting listener, a new port is allocated.
pub fn override_dial_concurrency_factor(
self,
factor: NonZero<u8>,
) -> WithPeerIdWithAddresses
pub fn override_dial_concurrency_factor( self, factor: NonZero<u8>, ) -> WithPeerIdWithAddresses
Override Number of addresses concurrently dialed for a single outbound connection attempt.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WithPeerIdWithAddresses
impl RefUnwindSafe for WithPeerIdWithAddresses
impl Send for WithPeerIdWithAddresses
impl Sync for WithPeerIdWithAddresses
impl Unpin for WithPeerIdWithAddresses
impl UnwindSafe for WithPeerIdWithAddresses
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more