pub struct OutboundInfo {
pub local_addr: Option<SocketAddr>,
pub peer_addr: Option<SocketAddr>,
pub hop_count: usize,
}Expand description
Metadata about an established outbound connection.
Fields§
§local_addr: Option<SocketAddr>The local address of the underlying TCP connection (if available).
peer_addr: Option<SocketAddr>The remote address of the first hop.
hop_count: usizeThe chain hops that were traversed.
Trait Implementations§
Source§impl Clone for OutboundInfo
impl Clone for OutboundInfo
Source§fn clone(&self) -> OutboundInfo
fn clone(&self) -> OutboundInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OutboundInfo
impl RefUnwindSafe for OutboundInfo
impl Send for OutboundInfo
impl Sync for OutboundInfo
impl Unpin for OutboundInfo
impl UnsafeUnpin for OutboundInfo
impl UnwindSafe for OutboundInfo
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