#[repr(u16)]pub enum Ifla {
Show 57 variants
Unspec = 0,
Address = 1,
Broadcast = 2,
Ifname = 3,
Mtu = 4,
Link = 5,
Qdisc = 6,
Stats = 7,
Cost = 8,
Priority = 9,
Master = 10,
Wireless = 11,
Protinfo = 12,
Txqlen = 13,
Map = 14,
Weight = 15,
Operstate = 16,
Linkmode = 17,
Linkinfo = 18,
NetNsPid = 19,
Ifalias = 20,
NumVf = 21,
VfinfoList = 22,
Stats64 = 23,
VfPorts = 24,
PortSelf = 25,
AfSpec = 26,
Group = 27,
NetNsFd = 28,
ExtMask = 29,
Promiscuity = 30,
NumTxQueues = 31,
NumRxQueues = 32,
Carrier = 33,
PhysPortId = 34,
CarrierChanges = 35,
PhysSwitchId = 36,
LinkNetnsid = 37,
PhysPortName = 38,
ProtoDown = 39,
GsoMaxSegs = 40,
GsoMaxSize = 41,
Pad = 42,
Xdp = 43,
Event = 44,
NewNetnsid = 45,
IfNetnsid = 46,
CarrierUpCount = 47,
CarrierDownCount = 48,
NewIfindex = 49,
MinMtu = 50,
MaxMtu = 51,
PropList = 52,
AltIfname = 53,
PermAddress = 54,
ProtoDownReason = 55,
_MAX = 56,
}
Variants§
Unspec = 0
Address = 1
Broadcast = 2
Ifname = 3
Mtu = 4
Link = 5
Qdisc = 6
Stats = 7
Cost = 8
Priority = 9
Master = 10
Wireless = 11
Protinfo = 12
Txqlen = 13
Map = 14
Weight = 15
Operstate = 16
Linkmode = 17
Linkinfo = 18
NetNsPid = 19
Ifalias = 20
NumVf = 21
VfinfoList = 22
Stats64 = 23
VfPorts = 24
PortSelf = 25
AfSpec = 26
Group = 27
NetNsFd = 28
ExtMask = 29
Promiscuity = 30
NumTxQueues = 31
NumRxQueues = 32
Carrier = 33
PhysPortId = 34
CarrierChanges = 35
PhysSwitchId = 36
LinkNetnsid = 37
PhysPortName = 38
ProtoDown = 39
GsoMaxSegs = 40
GsoMaxSize = 41
Pad = 42
Xdp = 43
Event = 44
NewNetnsid = 45
IfNetnsid = 46
CarrierUpCount = 47
CarrierDownCount = 48
NewIfindex = 49
MinMtu = 50
MaxMtu = 51
PropList = 52
AltIfname = 53
PermAddress = 54
ProtoDownReason = 55
_MAX = 56
Implementations§
Source§impl Ifla
impl Ifla
pub fn put_address<'a>( nlv: &'a mut MsgVec, data: &[u8], ) -> Result<&'a mut MsgVec>
pub fn put_broadcast<'a>( nlv: &'a mut MsgVec, data: &[u8], ) -> Result<&'a mut MsgVec>
pub fn put_ifname<'a>(nlv: &'a mut MsgVec, data: &str) -> Result<&'a mut MsgVec>
pub fn put_mtu<'a>(nlv: &'a mut MsgVec, data: &u32) -> Result<&'a mut MsgVec>
pub fn put_link<'a>(nlv: &'a mut MsgVec, data: &u32) -> Result<&'a mut MsgVec>
pub fn put_qdisc<'a>(nlv: &'a mut MsgVec, data: &str) -> Result<&'a mut MsgVec>
pub fn put_stats<'a>( nlv: &'a mut MsgVec, data: &RtnlLinkStats, ) -> Result<&'a mut MsgVec>
pub fn put_master<'a>(nlv: &'a mut MsgVec, data: &u32) -> Result<&'a mut MsgVec>
pub fn put_wireless<'a>( nlv: &'a mut MsgVec, data: &[u8], ) -> Result<&'a mut MsgVec>
Trait Implementations§
impl Copy for Ifla
impl Eq for Ifla
impl StructuralPartialEq for Ifla
Auto Trait Implementations§
impl Freeze for Ifla
impl RefUnwindSafe for Ifla
impl Send for Ifla
impl Sync for Ifla
impl Unpin for Ifla
impl UnwindSafe for Ifla
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