pub struct InetRequest {
pub family: u8,
pub protocol: u8,
pub extensions: ExtensionFlags,
pub states: StateFlags,
pub socket_id: SocketId,
}Expand description
A request for Ipv4 and Ipv6 sockets
Fields§
§family: u8The address family, either AF_INET or AF_INET6
protocol: u8The IP protocol. This field should be set to one of the
IPPROTO_* constants
extensions: ExtensionFlagsSet of flags defining what kind of extended information to report. Each requested kind of information is reported back as a netlink attribute.
states: StateFlagsBitmask that defines a filter of TCP socket states
socket_id: SocketIdA socket ID object that is used in dump requests, in queries about individual sockets, and is reported back in each response.
Unlike UNIX domain sockets, IPv4 and IPv6 sockets are identified using addresses and ports.
Trait Implementations§
Source§impl Clone for InetRequest
impl Clone for InetRequest
Source§fn clone(&self) -> InetRequest
fn clone(&self) -> InetRequest
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 InetRequest
impl Debug for InetRequest
Source§impl Emitable for InetRequest
impl Emitable for InetRequest
Source§impl<'a, T: AsRef<[u8]> + ?Sized + 'a> Parseable<InetRequestBuffer<&'a T>> for InetRequest
impl<'a, T: AsRef<[u8]> + ?Sized + 'a> Parseable<InetRequestBuffer<&'a T>> for InetRequest
type Error = DecodeError
Source§fn parse(buf: &InetRequestBuffer<&'a T>) -> Result<Self, DecodeError>
fn parse(buf: &InetRequestBuffer<&'a T>) -> Result<Self, DecodeError>
Deserialize the current type.
Source§impl PartialEq for InetRequest
impl PartialEq for InetRequest
impl Eq for InetRequest
impl StructuralPartialEq for InetRequest
Auto Trait Implementations§
impl Freeze for InetRequest
impl RefUnwindSafe for InetRequest
impl Send for InetRequest
impl Sync for InetRequest
impl Unpin for InetRequest
impl UnwindSafe for InetRequest
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