[−][src]Struct neli::nl::Nlmsghdr
Top level netlink header and payload
Fields
nl_len: u32
Length of the netlink message
nl_type: T
Type of the netlink message
nl_flags: Vec<NlmF>
Flags indicating properties of the request or response
nl_seq: u32
Sequence number for netlink protocol
nl_pid: u32
ID of the netlink destination for requests and source for responses
nl_payload: P
Payload of netlink message
Methods
impl<T, P> Nlmsghdr<T, P> where
T: NlType,
P: Nl,
[src]
T: NlType,
P: Nl,
pub fn new(
nl_len: Option<u32>,
nl_type: T,
nl_flags: Vec<NlmF>,
nl_seq: Option<u32>,
nl_pid: Option<u32>,
nl_payload: P
) -> Self
[src]
nl_len: Option<u32>,
nl_type: T,
nl_flags: Vec<NlmF>,
nl_seq: Option<u32>,
nl_pid: Option<u32>,
nl_payload: P
) -> Self
Create a new top level netlink packet with a payload
Trait Implementations
impl<T, P> Nl for Nlmsghdr<T, P> where
T: NlType,
P: Nl,
[src]
T: NlType,
P: Nl,
fn serialize(&self, mem: &mut StreamWriteBuffer) -> Result<(), SerError>
[src]
fn deserialize<B>(mem: &mut StreamReadBuffer<B>) -> Result<Self, DeError> where
B: AsRef<[u8]>,
[src]
B: AsRef<[u8]>,
fn size(&self) -> usize
[src]
fn asize(&self) -> usize
[src]
The size of the binary representation of a struct - aligned to word size
impl<T: PartialEq, P: PartialEq> PartialEq<Nlmsghdr<T, P>> for Nlmsghdr<T, P>
[src]
impl<T: Debug, P: Debug> Debug for Nlmsghdr<T, P>
[src]
Auto Trait Implementations
impl<T, P> Send for Nlmsghdr<T, P> where
P: Send,
T: Send,
P: Send,
T: Send,
impl<T, P> Sync for Nlmsghdr<T, P> where
P: Sync,
T: Sync,
P: Sync,
T: Sync,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,