Struct libp2p_core::connection::PendingConnection
source · [−]pub struct PendingConnection<'a, TInEvent> { /* private fields */ }
Expand description
A pending connection in a pool.
Implementations
sourceimpl<TInEvent> PendingConnection<'_, TInEvent>
impl<TInEvent> PendingConnection<'_, TInEvent>
sourcepub fn id(&self) -> ConnectionId
pub fn id(&self) -> ConnectionId
Returns the local connection ID.
sourcepub fn peer_id(&self) -> &Option<PeerId>
pub fn peer_id(&self) -> &Option<PeerId>
Returns the (expected) identity of the remote peer, if known.
sourcepub fn endpoint(&self) -> &ConnectedPoint
pub fn endpoint(&self) -> &ConnectedPoint
Returns information about this endpoint of the connection.
Auto Trait Implementations
impl<'a, TInEvent> !RefUnwindSafe for PendingConnection<'a, TInEvent>
impl<'a, TInEvent> Send for PendingConnection<'a, TInEvent> where
TInEvent: Send,
impl<'a, TInEvent> Sync for PendingConnection<'a, TInEvent> where
TInEvent: Send,
impl<'a, TInEvent> Unpin for PendingConnection<'a, TInEvent>
impl<'a, TInEvent> !UnwindSafe for PendingConnection<'a, TInEvent>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more