pub struct Message {
pub hdr: *mut Header,
pub data: *mut u8,
pub len: usize,
}Expand description
Represents a netlink message container
This structure provides a view of a netlink message, containing both the header pointer and the data buffer.
Fields§
§hdr: *mut HeaderPointer to the netlink message header
data: *mut u8Pointer to the message data buffer
len: usizeLength of the message in bytes
Implementations§
Source§impl Message
impl Message
Sourcepub fn next(&mut self) -> *const Header
pub fn next(&mut self) -> *const Header
Gets the next message in a sequence
Updates internal pointers and counters.
§Returns
Pointer to the next message header
Trait Implementations§
impl Copy for Message
impl Eq for Message
Source§impl Ord for Message
impl Ord for Message
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Message
impl PartialOrd for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl !Send for Message
impl !Sync for Message
impl Freeze for Message
impl RefUnwindSafe for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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