Enum nmstate::InterfaceIdentifier
source · #[non_exhaustive]pub enum InterfaceIdentifier {
Name,
MacAddress,
}
Expand description
Interface Identifier defines the method for network backend on matching network interface
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.
Name
Use interface name to match the network interface, default value. Deserialize and serialize from/to ‘name’.
MacAddress
Use interface MAC address to match the network interface. Deserialize and serialize from/to ‘mac-address’.
Implementations§
source§impl InterfaceIdentifier
impl InterfaceIdentifier
pub fn is_default(&self) -> bool
Trait Implementations§
source§impl Clone for InterfaceIdentifier
impl Clone for InterfaceIdentifier
source§fn clone(&self) -> InterfaceIdentifier
fn clone(&self) -> InterfaceIdentifier
Returns a copy 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 InterfaceIdentifier
impl Debug for InterfaceIdentifier
source§impl Default for InterfaceIdentifier
impl Default for InterfaceIdentifier
source§impl<'de> Deserialize<'de> for InterfaceIdentifier
impl<'de> Deserialize<'de> for InterfaceIdentifier
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for InterfaceIdentifier
impl Hash for InterfaceIdentifier
source§impl Ord for InterfaceIdentifier
impl Ord for InterfaceIdentifier
source§fn cmp(&self, other: &InterfaceIdentifier) -> Ordering
fn cmp(&self, other: &InterfaceIdentifier) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for InterfaceIdentifier
impl PartialEq for InterfaceIdentifier
source§impl PartialOrd for InterfaceIdentifier
impl PartialOrd for InterfaceIdentifier
source§impl Serialize for InterfaceIdentifier
impl Serialize for InterfaceIdentifier
impl Copy for InterfaceIdentifier
impl Eq for InterfaceIdentifier
impl StructuralPartialEq for InterfaceIdentifier
Auto Trait Implementations§
impl Freeze for InterfaceIdentifier
impl RefUnwindSafe for InterfaceIdentifier
impl Send for InterfaceIdentifier
impl Sync for InterfaceIdentifier
impl Unpin for InterfaceIdentifier
impl UnwindSafe for InterfaceIdentifier
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.