pub struct IncomingConnection<TUpgrade> {
pub local_addr: Multiaddr,
pub send_back_addr: Multiaddr,
/* private fields */
}
Expand description
A pending incoming connection produced by a listener.
Fields§
§local_addr: Multiaddr
Local connection address.
send_back_addr: Multiaddr
Address used to send back data to the remote.
Auto Trait Implementations§
impl<TUpgrade> Freeze for IncomingConnection<TUpgrade>where
TUpgrade: Freeze,
impl<TUpgrade> RefUnwindSafe for IncomingConnection<TUpgrade>where
TUpgrade: RefUnwindSafe,
impl<TUpgrade> Send for IncomingConnection<TUpgrade>where
TUpgrade: Send,
impl<TUpgrade> Sync for IncomingConnection<TUpgrade>where
TUpgrade: Sync,
impl<TUpgrade> Unpin for IncomingConnection<TUpgrade>where
TUpgrade: Unpin,
impl<TUpgrade> UnwindSafe for IncomingConnection<TUpgrade>where
TUpgrade: UnwindSafe,
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