pub struct Message {
pub family: u16,
pub attributes: Vec<Attribute>,
}Expand description
Netlink message for route messages
Fields§
§family: u16The family
attributes: Vec<Attribute>Message attributes
Implementations§
Trait Implementations§
Source§impl SendMessage for Message
impl SendMessage for Message
Source§fn pack(&self, data: &mut [u8]) -> Result<usize>
fn pack(&self, data: &mut [u8]) -> Result<usize>
Pack the message into the provided byte slice
Source§fn message_type(&self) -> u16
fn message_type(&self) -> u16
Get the message type
Source§fn query_flags(&self) -> MessageFlags
fn query_flags(&self) -> MessageFlags
Get the query flags
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin 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