pub struct GenlHeader {
pub cmd: u8,
pub version: u8,
}
Expand description
Generic Netlink header
Fields§
§cmd: u8
§version: u8
Trait Implementations§
Source§impl Clone for GenlHeader
impl Clone for GenlHeader
Source§fn clone(&self) -> GenlHeader
fn clone(&self) -> GenlHeader
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 GenlHeader
impl Debug for GenlHeader
Source§impl Emitable for GenlHeader
impl Emitable for GenlHeader
Source§impl<T: AsRef<[u8]>> Parseable<GenlBuffer<T>> for GenlHeader
impl<T: AsRef<[u8]>> Parseable<GenlBuffer<T>> for GenlHeader
Source§impl ParseableParametrized<[u8], GenlHeader> for GenlCtrl
impl ParseableParametrized<[u8], GenlHeader> for GenlCtrl
type Error = DecodeError
Source§fn parse_with_param(buf: &[u8], header: GenlHeader) -> Result<Self, DecodeError>
fn parse_with_param(buf: &[u8], header: GenlHeader) -> Result<Self, DecodeError>
Deserialize the current type.
Source§impl PartialEq for GenlHeader
impl PartialEq for GenlHeader
impl Copy for GenlHeader
impl Eq for GenlHeader
impl StructuralPartialEq for GenlHeader
Auto Trait Implementations§
impl Freeze for GenlHeader
impl RefUnwindSafe for GenlHeader
impl Send for GenlHeader
impl Sync for GenlHeader
impl Unpin for GenlHeader
impl UnwindSafe for GenlHeader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)