Struct libp2p_core::network::IncomingConnection
source · [−]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> 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
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