Struct netlink_packet_sock_diag::unix::UnixRequest[][src]

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

cookie: [u8; 8]

This is an opaque identifiers that could be used to specify an individual socket.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Return the length of the serialized data.

Serialize this types and write the serialized data into the given buffer. Read more

Deserialize the current type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.