#[repr(C)]pub struct NlMsgHeader { /* private fields */ }
Implementations§
Source§impl NlMsgHeader
impl NlMsgHeader
pub fn user_defined(t: u16) -> NlMsgHeader
pub fn request() -> NlMsgHeader
pub fn done() -> NlMsgHeader
pub fn error() -> NlMsgHeader
pub fn from_bytes(bytes: &[u8]) -> Result<(NlMsgHeader, usize)>
pub fn bytes(&self) -> &[u8] ⓘ
pub fn msg_type(&self) -> MsgType
pub fn msg_length(&self) -> u32
Sourcepub fn data_length(&mut self, len: u32) -> &mut NlMsgHeader
pub fn data_length(&mut self, len: u32) -> &mut NlMsgHeader
Set message length
Sourcepub fn multipart(&mut self) -> &mut NlMsgHeader
pub fn multipart(&mut self) -> &mut NlMsgHeader
Multipart message
Sourcepub fn ack(&mut self) -> &mut NlMsgHeader
pub fn ack(&mut self) -> &mut NlMsgHeader
Request acknowledgement
Sourcepub fn echo(&mut self) -> &mut NlMsgHeader
pub fn echo(&mut self) -> &mut NlMsgHeader
Echo message
Sourcepub fn seq(&mut self, n: u32) -> &mut NlMsgHeader
pub fn seq(&mut self, n: u32) -> &mut NlMsgHeader
Set sequence number
Sourcepub fn pid(&mut self, n: u32) -> &mut NlMsgHeader
pub fn pid(&mut self, n: u32) -> &mut NlMsgHeader
Set PID number
Sourcepub fn replace(&mut self) -> &mut NlMsgHeader
pub fn replace(&mut self) -> &mut NlMsgHeader
Override existing
Sourcepub fn excl(&mut self) -> &mut NlMsgHeader
pub fn excl(&mut self) -> &mut NlMsgHeader
Do not touch, if it exists
Sourcepub fn create(&mut self) -> &mut NlMsgHeader
pub fn create(&mut self) -> &mut NlMsgHeader
Create, if it does not exist
Sourcepub fn append(&mut self) -> &mut NlMsgHeader
pub fn append(&mut self) -> &mut NlMsgHeader
Add to end of list
Sourcepub fn root(&mut self) -> &mut NlMsgHeader
pub fn root(&mut self) -> &mut NlMsgHeader
specify tree root
Sourcepub fn match_provided(&mut self) -> &mut NlMsgHeader
pub fn match_provided(&mut self) -> &mut NlMsgHeader
return all matching
Sourcepub fn atomic(&mut self) -> &mut NlMsgHeader
pub fn atomic(&mut self) -> &mut NlMsgHeader
atomic GET
Sourcepub fn dump(&mut self) -> &mut NlMsgHeader
pub fn dump(&mut self) -> &mut NlMsgHeader
(Root|Match)
Trait Implementations§
Source§impl Clone for NlMsgHeader
impl Clone for NlMsgHeader
Source§fn clone(&self) -> NlMsgHeader
fn clone(&self) -> NlMsgHeader
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 NlMsgHeader
impl Debug for NlMsgHeader
Source§impl PartialEq for NlMsgHeader
impl PartialEq for NlMsgHeader
impl Copy for NlMsgHeader
impl Eq for NlMsgHeader
impl StructuralPartialEq for NlMsgHeader
Auto Trait Implementations§
impl Freeze for NlMsgHeader
impl RefUnwindSafe for NlMsgHeader
impl Send for NlMsgHeader
impl Sync for NlMsgHeader
impl Unpin for NlMsgHeader
impl UnwindSafe for NlMsgHeader
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