Enum nmstate::MacVlanMode
source · #[non_exhaustive]pub enum MacVlanMode {
Vepa,
Bridge,
Private,
Passthru,
Source,
Unknown,
}
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.
Vepa
Deserialize and serialize from/to vepa
.
Bridge
Deserialize and serialize from/to bridge
.
Private
Deserialize and serialize from/to private
.
Passthru
Deserialize and serialize from/to passthru
.
Source
Deserialize and serialize from/to source
.
Unknown
Trait Implementations§
source§impl Clone for MacVlanMode
impl Clone for MacVlanMode
source§fn clone(&self) -> MacVlanMode
fn clone(&self) -> MacVlanMode
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 MacVlanMode
impl Debug for MacVlanMode
source§impl Default for MacVlanMode
impl Default for MacVlanMode
source§impl<'de> Deserialize<'de> for MacVlanMode
impl<'de> Deserialize<'de> for MacVlanMode
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 From<MacVlanMode> for u32
impl From<MacVlanMode> for u32
source§fn from(v: MacVlanMode) -> u32
fn from(v: MacVlanMode) -> u32
Converts to this type from the input type.
source§impl PartialEq for MacVlanMode
impl PartialEq for MacVlanMode
source§fn eq(&self, other: &MacVlanMode) -> bool
fn eq(&self, other: &MacVlanMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MacVlanMode
impl Serialize for MacVlanMode
impl Copy for MacVlanMode
impl Eq for MacVlanMode
impl StructuralPartialEq for MacVlanMode
Auto Trait Implementations§
impl Freeze for MacVlanMode
impl RefUnwindSafe for MacVlanMode
impl Send for MacVlanMode
impl Sync for MacVlanMode
impl Unpin for MacVlanMode
impl UnwindSafe for MacVlanMode
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<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.source§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.