pub enum InterfaceMatcher {
ByOrder(usize),
ByMac(EthernetAddress),
ByDriverName(String),
}Expand description
Interface matching rule for explicit configuration.
Variants§
ByOrder(usize)
Match the Nth probed Ethernet device.
ByMac(EthernetAddress)
Match a device by its Ethernet MAC address.
ByDriverName(String)
Match a device by the name reported by its driver.
Trait Implementations§
Source§impl Clone for InterfaceMatcher
impl Clone for InterfaceMatcher
Source§fn clone(&self) -> InterfaceMatcher
fn clone(&self) -> InterfaceMatcher
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InterfaceMatcher
impl RefUnwindSafe for InterfaceMatcher
impl Send for InterfaceMatcher
impl Sync for InterfaceMatcher
impl Unpin for InterfaceMatcher
impl UnsafeUnpin for InterfaceMatcher
impl UnwindSafe for InterfaceMatcher
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