[][src]Struct susyp2p_core::nodes::raw_swarm::PeerPendingConnect

pub struct PeerPendingConnect<'a, TTrans, TInEvent, TOutEvent, THandler, THandlerErr, TConnInfo, TPeerId> where
    TTrans: Transport
{ /* fields omitted */ }

Access to a peer we are attempting to connect to.

Methods

impl<'a, TTrans, TInEvent, TOutEvent, THandler, THandlerErr, TConnInfo, TPeerId> PeerPendingConnect<'a, TTrans, TInEvent, TOutEvent, THandler, THandlerErr, TConnInfo, TPeerId> where
    TTrans: Transport,
    TConnInfo: ConnectionInfo<PeerId = TPeerId>,
    TPeerId: Eq + Hash
[src]

pub fn interrupt(self)[src]

Interrupt this connection attempt.

pub fn attempted_multiaddr(&self) -> &Multiaddr[src]

Returns the multiaddress we're currently trying to dial.

pub fn pending_multiaddrs(&self) -> impl Iterator<Item = &Multiaddr>[src]

Returns a list of the multiaddresses we're going to try if the current dialing fails.

pub fn append_multiaddr_attempts(
    &mut self,
    addrs: impl IntoIterator<Item = Multiaddr>
)
[src]

Adds new multiaddrs to attempt if the current dialing fails.

Doesn't do anything for multiaddresses that are already in the queue.

pub fn append_multiaddr_attempt(&mut self, addr: Multiaddr)[src]

Adds a new multiaddr to attempt if the current dialing fails.

Doesn't do anything if that multiaddress is already in the queue.

Trait Implementations

impl<'a, TTrans: Debug, TInEvent: Debug, TOutEvent: Debug, THandler: Debug, THandlerErr: Debug, TConnInfo: Debug, TPeerId: Debug> Debug for PeerPendingConnect<'a, TTrans, TInEvent, TOutEvent, THandler, THandlerErr, TConnInfo, TPeerId> where
    TTrans: Transport,
    TTrans::Error: Debug
[src]

Auto Trait Implementations

impl<'a, TTrans, TInEvent, TOutEvent, THandler, THandlerErr, TConnInfo, TPeerId> Send for PeerPendingConnect<'a, TTrans, TInEvent, TOutEvent, THandler, THandlerErr, TConnInfo, TPeerId> where
    TConnInfo: Send,
    THandler: Send,
    THandlerErr: Send,
    TInEvent: Send,
    TOutEvent: Send,
    TPeerId: Send,
    <TTrans as Transport>::Error: Send

impl<'a, TTrans, TInEvent, TOutEvent, THandler, THandlerErr, TConnInfo, TPeerId> !Sync for PeerPendingConnect<'a, TTrans, TInEvent, TOutEvent, THandler, THandlerErr, TConnInfo, TPeerId>

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self

impl<T> Erased for T