pub struct TcpConnectionInfo {
pub local_port: u16,
pub remote_ip: Ipv4Addr,
pub remote_port: u16,
}Expand description
Information about an established connection.
Fields§
§local_port: u16Local port
remote_ip: Ipv4AddrRemote IP address
remote_port: u16Remote port
Trait Implementations§
Source§impl Clone for TcpConnectionInfo
impl Clone for TcpConnectionInfo
Source§fn clone(&self) -> TcpConnectionInfo
fn clone(&self) -> TcpConnectionInfo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TcpConnectionInfo
impl Debug for TcpConnectionInfo
impl Copy for TcpConnectionInfo
Auto Trait Implementations§
impl Freeze for TcpConnectionInfo
impl RefUnwindSafe for TcpConnectionInfo
impl Send for TcpConnectionInfo
impl Sync for TcpConnectionInfo
impl Unpin for TcpConnectionInfo
impl UnwindSafe for TcpConnectionInfo
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