pub struct Rtmsg { /* private fields */ }
Expand description
Route message
Implementations§
Source§impl Rtmsg
impl Rtmsg
Sourcepub fn rtm_family(&self) -> &RtAddrFamily
pub fn rtm_family(&self) -> &RtAddrFamily
Address family of route
Sourcepub fn rtm_dst_len(&self) -> &c_uchar
pub fn rtm_dst_len(&self) -> &c_uchar
Length of destination
Sourcepub fn rtm_src_len(&self) -> &c_uchar
pub fn rtm_src_len(&self) -> &c_uchar
Length of source
Sourcepub fn rtm_protocol(&self) -> &Rtprot
pub fn rtm_protocol(&self) -> &Rtprot
Routing protocol
Trait Implementations§
Source§impl FromBytesWithInput for Rtmsg
impl FromBytesWithInput for Rtmsg
Source§impl Header for Rtmsg
impl Header for Rtmsg
Source§fn header_size() -> usize
fn header_size() -> usize
Return the size in bytes of the data structure header.
Source§impl Size for Rtmsg
impl Size for Rtmsg
Source§fn unpadded_size(&self) -> usize
fn unpadded_size(&self) -> usize
Size of the unpadded data structure. This will usually
only be unaligned for variable length types like
strings or byte buffers.
Source§fn padded_size(&self) -> usize
fn padded_size(&self) -> usize
Get the size of the payload and align it to
the required netlink byte alignment.
Auto Trait Implementations§
impl Freeze for Rtmsg
impl RefUnwindSafe for Rtmsg
impl Send for Rtmsg
impl Sync for Rtmsg
impl Unpin for Rtmsg
impl UnwindSafe for Rtmsg
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