pub struct PendingConnection<'a, TInEvent> { /* private fields */ }
Expand description
A pending connection in a pool.
Implementations§
Source§impl<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> Freeze for PendingConnection<'a, TInEvent>
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§
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
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