pub enum PT_SOCKTUPLE {
Unix {
source_ptr: u64,
dest_ptr: u64,
path: PathBuf,
},
V4 {
source: (Ipv4Addr, Port),
dest: (Ipv4Addr, Port),
},
V6 {
source: (Ipv6Addr, Port),
dest: (Ipv6Addr, Port),
},
Other(u8, Vec<u8>),
}
Expand description
Socket tuple: describing both endpoints of a connection (owned)
Variants§
Unix
Unix socket connection
Fields
V4
IPv4 connection
Fields
V6
IPv6 connection
Fields
Other(u8, Vec<u8>)
Unknown/other socket family: PPM_AF_*
id and a raw byte buffer
Trait Implementations§
source§impl Debug for OwnedSockTuple
impl Debug for OwnedSockTuple
source§impl<'de> Deserialize<'de> for OwnedSockTuple
impl<'de> Deserialize<'de> for OwnedSockTuple
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
Auto Trait Implementations§
impl Freeze for OwnedSockTuple
impl RefUnwindSafe for OwnedSockTuple
impl Send for OwnedSockTuple
impl Sync for OwnedSockTuple
impl Unpin for OwnedSockTuple
impl UnwindSafe for OwnedSockTuple
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
source§impl<T> ToBytes for Twhere
T: Borrow + 'static,
<T as Borrow>::Borrowed<'a>: for<'a> ToBytes,
impl<T> ToBytes for Twhere
T: Borrow + 'static,
<T as Borrow>::Borrowed<'a>: for<'a> ToBytes,
source§fn binary_size(&self) -> usize
fn binary_size(&self) -> usize
Return the number of bytes needed to store the field
source§fn write<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
fn write<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
Write the binary representation to
writer
source§fn default_repr() -> impl ToBytes
fn default_repr() -> impl ToBytes
Return the default representation for the field type Read more