Struct NlMsgHeader

Source
#[repr(C)]
pub struct NlMsgHeader { /* private fields */ }

Implementations§

Source§

impl NlMsgHeader

Source

pub fn user_defined(t: u16) -> NlMsgHeader

Source

pub fn request() -> NlMsgHeader

Source

pub fn done() -> NlMsgHeader

Source

pub fn error() -> NlMsgHeader

Source

pub fn from_bytes(bytes: &[u8]) -> Result<(NlMsgHeader, usize)>

Source

pub fn bytes(&self) -> &[u8]

Source

pub fn msg_type(&self) -> MsgType

Source

pub fn msg_length(&self) -> u32

Source

pub fn data_length(&mut self, len: u32) -> &mut NlMsgHeader

Set message length

Source

pub fn multipart(&mut self) -> &mut NlMsgHeader

Multipart message

Source

pub fn ack(&mut self) -> &mut NlMsgHeader

Request acknowledgement

Source

pub fn echo(&mut self) -> &mut NlMsgHeader

Echo message

Source

pub fn seq(&mut self, n: u32) -> &mut NlMsgHeader

Set sequence number

Source

pub fn pid(&mut self, n: u32) -> &mut NlMsgHeader

Set PID number

Source

pub fn replace(&mut self) -> &mut NlMsgHeader

Override existing

Source

pub fn excl(&mut self) -> &mut NlMsgHeader

Do not touch, if it exists

Source

pub fn create(&mut self) -> &mut NlMsgHeader

Create, if it does not exist

Source

pub fn append(&mut self) -> &mut NlMsgHeader

Add to end of list

Source

pub fn root(&mut self) -> &mut NlMsgHeader

specify tree root

Source

pub fn match_provided(&mut self) -> &mut NlMsgHeader

return all matching

Source

pub fn atomic(&mut self) -> &mut NlMsgHeader

atomic GET

Source

pub fn dump(&mut self) -> &mut NlMsgHeader

(Root|Match)

Trait Implementations§

Source§

impl Clone for NlMsgHeader

Source§

fn clone(&self) -> NlMsgHeader

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NlMsgHeader

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for NlMsgHeader

Source§

fn eq(&self, other: &NlMsgHeader) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for NlMsgHeader

Source§

impl Eq for NlMsgHeader

Source§

impl StructuralPartialEq for NlMsgHeader

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.