Struct netlink_packet_sock_diag::unix::UnixRequest
source · pub struct UnixRequest {
pub state_flags: StateFlags,
pub inode: u32,
pub show_flags: ShowFlags,
pub cookie: [u8; 8],
}
Expand description
The request for UNIX domain sockets
Fields§
§state_flags: StateFlags
This is a bit mask that defines a filter of sockets states.
Only those sockets whose states are in this mask will be reported. Ignored when querying for an individual socket.
inode: u32
This is an inode number when querying for an individual socket.
Ignored when querying for a list of sockets.
show_flags: ShowFlags
This is a set of flags defining what kind of information to report.
Each requested kind of information is reported back as a netlink attribute
This is an opaque identifiers that could be used to specify an individual socket.
Trait Implementations§
source§impl Clone for UnixRequest
impl Clone for UnixRequest
source§fn clone(&self) -> UnixRequest
fn clone(&self) -> UnixRequest
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 UnixRequest
impl Debug for UnixRequest
source§impl Emitable for UnixRequest
impl Emitable for UnixRequest
source§impl<'a, T: AsRef<[u8]> + 'a> Parseable<UnixRequestBuffer<&'a T>> for UnixRequest
impl<'a, T: AsRef<[u8]> + 'a> Parseable<UnixRequestBuffer<&'a T>> for UnixRequest
source§fn parse(buf: &UnixRequestBuffer<&'a T>) -> Result<Self, DecodeError>
fn parse(buf: &UnixRequestBuffer<&'a T>) -> Result<Self, DecodeError>
Deserialize the current type.
source§impl PartialEq<UnixRequest> for UnixRequest
impl PartialEq<UnixRequest> for UnixRequest
source§fn eq(&self, other: &UnixRequest) -> bool
fn eq(&self, other: &UnixRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for UnixRequest
impl StructuralEq for UnixRequest
impl StructuralPartialEq for UnixRequest
Auto Trait Implementations§
impl RefUnwindSafe for UnixRequest
impl Send for UnixRequest
impl Sync for UnixRequest
impl Unpin for UnixRequest
impl UnwindSafe for UnixRequest
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