[−][src]Struct susyp2p_core::nodes::raw_swarm::PeerPendingConnect
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]
TTrans: Transport,
TConnInfo: ConnectionInfo<PeerId = TPeerId>,
TPeerId: Eq + Hash,
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]
&mut self,
addrs: impl IntoIterator<Item = Multiaddr>
)
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]
TTrans: Transport,
TTrans::Error: Debug,
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,
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]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same for T
type Output = T
Should always be Self