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: u8This should be set to either AF_INET or AF_INET6 for IPv4
or IPv6 sockets respectively.
state: u8The socket state.
timer: Option<Timer>For TCP sockets, this field describes the type of timer that is currently active for the socket.
socket_id: SocketIdThe socket ID object.
recv_queue: u32For listening sockets: the number of pending connections. For other sockets: the amount of data in the incoming queue.
send_queue: u32For listening sockets: the backlog length. For other sockets: the amount of memory available for sending.
uid: u32Socket owner UID.
inode: u32Socket inode number.
Trait Implementations§
Source§impl Clone for InetResponseHeader
impl Clone for InetResponseHeader
Source§fn clone(&self) -> InetResponseHeader
fn clone(&self) -> InetResponseHeader
Returns a duplicate 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
type Error = DecodeError
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 for InetResponseHeader
impl PartialEq for InetResponseHeader
impl Eq for InetResponseHeader
impl StructuralPartialEq for InetResponseHeader
Auto Trait Implementations§
impl Freeze for InetResponseHeader
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