Expand description
Generic netlink header struct, can be used by netlink consumer
Fields§
§cmd: u8
§version: u8
§reserved: u16
Trait Implementations§
source§impl AsBytes for GenlMsgHdrwhere
u8: AsBytes,
u16: AsBytes,
HasPadding<GenlMsgHdr, { _ }>: ShouldBe<{ _ }>,
impl AsBytes for GenlMsgHdrwhere
u8: AsBytes,
u16: AsBytes,
HasPadding<GenlMsgHdr, { _ }>: ShouldBe<{ _ }>,
§fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
source§impl Clone for GenlMsgHdr
impl Clone for GenlMsgHdr
source§fn clone(&self) -> GenlMsgHdr
fn clone(&self) -> GenlMsgHdr
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 more