Struct netlink_packet_sock_diag::inet::InetResponseHeader
source · pub struct InetResponseHeader {
pub family: u8,
pub state: u8,
pub timer: Option<Timer>,
pub socket_id: SocketId,
pub recv_queue: u32,
pub send_queue: u32,
pub uid: u32,
pub inode: u32,
}
Expand description
The response to a query for IPv4 or IPv6 sockets
Fields§
§family: u8
This should be set to either AF_INET
or AF_INET6
for IPv4
or IPv6 sockets respectively.
state: u8
The socket state.
timer: Option<Timer>
For TCP sockets, this field describes the type of timer that is currently active for the socket.
socket_id: SocketId
The socket ID object.
recv_queue: u32
For listening sockets: the number of pending connections. For other sockets: the amount of data in the incoming queue.
send_queue: u32
For listening sockets: the backlog length. For other sockets: the amount of memory available for sending.
uid: u32
Socket owner UID.
inode: u32
Socket inode number.
Trait Implementations§
source§impl Clone for InetResponseHeader
impl Clone for InetResponseHeader
source§fn clone(&self) -> InetResponseHeader
fn clone(&self) -> InetResponseHeader
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 InetResponseHeader
impl Debug for InetResponseHeader
source§impl Emitable for InetResponseHeader
impl Emitable for InetResponseHeader
source§impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<InetResponseBuffer<&'a T>> for InetResponseHeader
impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<InetResponseBuffer<&'a T>> for InetResponseHeader
source§fn parse(buf: &InetResponseBuffer<&'a T>) -> Result<Self, DecodeError>
fn parse(buf: &InetResponseBuffer<&'a T>) -> Result<Self, DecodeError>
Deserialize the current type.
source§impl PartialEq<InetResponseHeader> for InetResponseHeader
impl PartialEq<InetResponseHeader> for InetResponseHeader
source§fn eq(&self, other: &InetResponseHeader) -> bool
fn eq(&self, other: &InetResponseHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for InetResponseHeader
impl StructuralEq for InetResponseHeader
impl StructuralPartialEq for InetResponseHeader
Auto Trait Implementations§
impl RefUnwindSafe for InetResponseHeader
impl Send for InetResponseHeader
impl Sync for InetResponseHeader
impl Unpin for InetResponseHeader
impl UnwindSafe for InetResponseHeader
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