pub enum InterfaceName {
Exact(CString),
StartingWith(CString),
}Expand description
Can be used to compare the value loaded by Meta::IifName and Meta::OifName. Please
note that it is faster to check interface index than name.
Variants§
Exact(CString)
Interface name must be exactly the value of the CString.
StartingWith(CString)
Interface name must start with the value of the CString.
InterfaceName::StartingWith("eth") will look like eth* when printed and match against
eth0, eth1, …, eth99 and so on.
Trait Implementations§
Source§impl Clone for InterfaceName
impl Clone for InterfaceName
Source§fn clone(&self) -> InterfaceName
fn clone(&self) -> InterfaceName
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 moreSource§impl Debug for InterfaceName
impl Debug for InterfaceName
impl Eq for InterfaceName
Source§impl Hash for InterfaceName
impl Hash for InterfaceName
Source§impl PartialEq for InterfaceName
impl PartialEq for InterfaceName
impl StructuralPartialEq for InterfaceName
Source§impl ToSlice for InterfaceName
impl ToSlice for InterfaceName
Auto Trait Implementations§
impl Freeze for InterfaceName
impl RefUnwindSafe for InterfaceName
impl Send for InterfaceName
impl Sync for InterfaceName
impl Unpin for InterfaceName
impl UnsafeUnpin for InterfaceName
impl UnwindSafe for InterfaceName
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