Struct netlink_packet_sock_diag::inet::SocketId
source · pub struct SocketId {
pub source_port: u16,
pub destination_port: u16,
pub source_address: IpAddr,
pub destination_address: IpAddr,
pub interface_id: u32,
pub cookie: [u8; 8],
}
Fields§
§source_port: u16
§destination_port: u16
§source_address: IpAddr
§destination_address: IpAddr
§interface_id: u32
An array of opaque identifiers that could be used along with
other fields of this structure to specify an individual
socket. It is ignored when querying for a list of sockets, as
well as when all its elements are set to 0xff
.
Implementations§
Trait Implementations§
source§impl<'a, T: AsRef<[u8]> + 'a> ParseableParametrized<SocketIdBuffer<&'a T>, u8> for SocketId
impl<'a, T: AsRef<[u8]> + 'a> ParseableParametrized<SocketIdBuffer<&'a T>, u8> for SocketId
type Error = DecodeError
source§fn parse_with_param(
buf: &SocketIdBuffer<&'a T>,
af: u8
) -> Result<Self, DecodeError>
fn parse_with_param( buf: &SocketIdBuffer<&'a T>, af: u8 ) -> Result<Self, DecodeError>
Deserialize the current type.
source§impl PartialEq for SocketId
impl PartialEq for SocketId
impl Eq for SocketId
impl StructuralPartialEq for SocketId
Auto Trait Implementations§
impl Freeze for SocketId
impl RefUnwindSafe for SocketId
impl Send for SocketId
impl Sync for SocketId
impl Unpin for SocketId
impl UnwindSafe for SocketId
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