#[non_exhaustive]pub enum RtnlLinkRequest {
InterfaceList,
InterfaceGet {
if_id: u32,
},
InterfaceGetByName {
if_name: String,
},
MacAddrGet {
if_id: u32,
},
MacAddrSet {
if_id: u32,
mac_addr: MacAddr,
},
MtuGet {
if_id: u32,
},
InterfaceSetAdmin {
if_id: u32,
up: bool,
},
InterfaceSetPromisc {
if_id: u32,
enable: bool,
},
InterfaceSetArp {
if_id: u32,
enable: bool,
},
InterfaceSetMtu {
if_id: u32,
mtu: u32,
},
InterfaceRename {
if_id: u32,
if_name: String,
},
InterfaceSetAllMulticast {
if_id: u32,
enable: bool,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InterfaceList
InterfaceGet
InterfaceGetByName
MacAddrGet
MacAddrSet
MtuGet
InterfaceSetAdmin
InterfaceSetPromisc
InterfaceSetArp
InterfaceSetMtu
InterfaceRename
InterfaceSetAllMulticast
Trait Implementations§
Source§impl Clone for RtnlLinkRequest
impl Clone for RtnlLinkRequest
Source§fn clone(&self) -> RtnlLinkRequest
fn clone(&self) -> RtnlLinkRequest
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 RtnlLinkRequest
impl Debug for RtnlLinkRequest
Source§impl PartialEq for RtnlLinkRequest
impl PartialEq for RtnlLinkRequest
impl StructuralPartialEq for RtnlLinkRequest
Auto Trait Implementations§
impl Freeze for RtnlLinkRequest
impl RefUnwindSafe for RtnlLinkRequest
impl Send for RtnlLinkRequest
impl Sync for RtnlLinkRequest
impl Unpin for RtnlLinkRequest
impl UnwindSafe for RtnlLinkRequest
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