pub enum Rtprot {
Unspec,
Redirect,
Kernel,
Boot,
Static,
UnrecognizedConst(c_uchar),
}
Expand description
rtm_protocol
The origins of routes that are defined in the kernel
Variants§
Implementations§
Trait Implementations§
Source§impl Ord for Rtprot
impl Ord for Rtprot
Source§impl PartialOrd for Rtprot
impl PartialOrd for Rtprot
Source§impl Size for Rtprot
impl Size for Rtprot
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 of the payload and align it to
the required netlink byte alignment.
impl Copy for Rtprot
impl Eq for Rtprot
impl StructuralPartialEq for Rtprot
Auto Trait Implementations§
impl Freeze for Rtprot
impl RefUnwindSafe for Rtprot
impl Send for Rtprot
impl Sync for Rtprot
impl Unpin for Rtprot
impl UnwindSafe for Rtprot
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