#[repr(u16)]pub enum RtattrType {
Show 32 variants
Unspec = 0,
Dst = 1,
Src = 2,
Iif = 3,
Oif = 4,
Gateway = 5,
Priority = 6,
Prefsrc = 7,
Metrics = 8,
Multipath = 9,
Protoinfo = 10,
Flow = 11,
Cacheinfo = 12,
Session = 13,
MpAlgo = 14,
Table = 15,
Mark = 16,
MfcStats = 17,
Via = 18,
Newdst = 19,
Pref = 20,
EncapType = 21,
Encap = 22,
Expires = 23,
Pad = 24,
Uid = 25,
TtlPropagate = 26,
IpProto = 27,
Sport = 28,
Dport = 29,
NhId = 30,
_MAX = 31,
}
Variants§
Unspec = 0
Dst = 1
Src = 2
Iif = 3
Oif = 4
Gateway = 5
Priority = 6
Prefsrc = 7
Metrics = 8
Multipath = 9
Protoinfo = 10
Flow = 11
Cacheinfo = 12
Session = 13
MpAlgo = 14
Table = 15
Mark = 16
MfcStats = 17
Via = 18
Newdst = 19
Pref = 20
EncapType = 21
Encap = 22
Expires = 23
Pad = 24
Uid = 25
TtlPropagate = 26
IpProto = 27
Sport = 28
Dport = 29
NhId = 30
_MAX = 31
Implementations§
Source§impl RtattrType
impl RtattrType
pub fn put_v4dst<'a>( nlv: &'a mut MsgVec, data: &Ipv4Addr, ) -> Result<&'a mut MsgVec>
pub fn put_v6dst<'a>( nlv: &'a mut MsgVec, data: &Ipv6Addr, ) -> Result<&'a mut MsgVec>
pub fn put_v4src<'a>( nlv: &'a mut MsgVec, data: &Ipv4Addr, ) -> Result<&'a mut MsgVec>
pub fn put_v6src<'a>( nlv: &'a mut MsgVec, data: &Ipv6Addr, ) -> Result<&'a mut MsgVec>
pub fn put_iif<'a>(nlv: &'a mut MsgVec, data: &u32) -> Result<&'a mut MsgVec>
pub fn put_oif<'a>(nlv: &'a mut MsgVec, data: &u32) -> Result<&'a mut MsgVec>
pub fn put_v4gateway<'a>( nlv: &'a mut MsgVec, data: &Ipv4Addr, ) -> Result<&'a mut MsgVec>
pub fn put_v6gateway<'a>( nlv: &'a mut MsgVec, data: &Ipv6Addr, ) -> Result<&'a mut MsgVec>
pub fn put_priority<'a>( nlv: &'a mut MsgVec, data: &u32, ) -> Result<&'a mut MsgVec>
pub fn put_v4prefsrc<'a>( nlv: &'a mut MsgVec, data: &Ipv4Addr, ) -> Result<&'a mut MsgVec>
pub fn put_v6prefsrc<'a>( nlv: &'a mut MsgVec, data: &Ipv6Addr, ) -> Result<&'a mut MsgVec>
pub fn metrics_start(nlv: &mut MsgVec) -> Result<&mut MsgVec>
pub fn put_flow<'a>(nlv: &'a mut MsgVec, data: &u32) -> Result<&'a mut MsgVec>
pub fn put_table<'a>(nlv: &'a mut MsgVec, data: &u32) -> Result<&'a mut MsgVec>
Trait Implementations§
Source§impl Clone for RtattrType
impl Clone for RtattrType
Source§fn clone(&self) -> RtattrType
fn clone(&self) -> RtattrType
Returns a duplicate 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 moreSource§impl Debug for RtattrType
impl Debug for RtattrType
Source§impl Hash for RtattrType
impl Hash for RtattrType
Source§impl<'a> Index<RtattrType> for RtattrTypeTbl<'a>
impl<'a> Index<RtattrType> for RtattrTypeTbl<'a>
Source§impl<'a> IndexMut<RtattrType> for RtattrTypeTbl<'a>
impl<'a> IndexMut<RtattrType> for RtattrTypeTbl<'a>
Source§impl Into<u16> for RtattrType
impl Into<u16> for RtattrType
Source§impl Into<usize> for RtattrType
impl Into<usize> for RtattrType
Source§impl PartialEq for RtattrType
impl PartialEq for RtattrType
Source§impl TryFrom<u16> for RtattrType
impl TryFrom<u16> for RtattrType
impl Copy for RtattrType
impl Eq for RtattrType
impl StructuralPartialEq for RtattrType
Auto Trait Implementations§
impl Freeze for RtattrType
impl RefUnwindSafe for RtattrType
impl Send for RtattrType
impl Sync for RtattrType
impl Unpin for RtattrType
impl UnwindSafe for RtattrType
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