pub struct Socket {
pub proto: L4Proto,
pub local: SocketAddr,
pub remote: Option<SocketAddr>,
pub state: TcpState,
pub process: ProcessInfo,
pub bound_iface: Option<String>,
}Expand description
A listening or established socket.
Fields§
§proto: L4Proto§local: SocketAddr§remote: Option<SocketAddr>§state: TcpState§process: ProcessInfo§bound_iface: Option<String>Set when the socket is bound with SO_BINDTODEVICE or a %iface suffix.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Socket
impl<'de> Deserialize<'de> for Socket
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Socket
impl StructuralPartialEq for Socket
Auto Trait Implementations§
impl Freeze for Socket
impl RefUnwindSafe for Socket
impl Send for Socket
impl Sync for Socket
impl Unpin for Socket
impl UnsafeUnpin for Socket
impl UnwindSafe for Socket
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