pub struct TcpSocketInfo {
pub local_addr: IpAddr,
pub local_port: u16,
pub remote_addr: IpAddr,
pub remote_port: u16,
pub state: TcpState,
}
Expand description
TCP-specific socket information.
Fields§
§local_addr: IpAddr
§local_port: u16
§remote_addr: IpAddr
§remote_port: u16
§state: TcpState
Trait Implementations§
Source§impl Clone for TcpSocketInfo
impl Clone for TcpSocketInfo
Source§fn clone(&self) -> TcpSocketInfo
fn clone(&self) -> TcpSocketInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TcpSocketInfo
impl Debug for TcpSocketInfo
Source§impl PartialEq for TcpSocketInfo
impl PartialEq for TcpSocketInfo
impl Eq for TcpSocketInfo
impl StructuralPartialEq for TcpSocketInfo
Auto Trait Implementations§
impl Freeze for TcpSocketInfo
impl RefUnwindSafe for TcpSocketInfo
impl Send for TcpSocketInfo
impl Sync for TcpSocketInfo
impl Unpin for TcpSocketInfo
impl UnwindSafe for TcpSocketInfo
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