Enum nmstate::BridgePortVlanMode
source · #[non_exhaustive]
pub enum BridgePortVlanMode {
Trunk,
Access,
}
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.
Trait Implementations§
source§impl Clone for BridgePortVlanMode
impl Clone for BridgePortVlanMode
source§fn clone(&self) -> BridgePortVlanMode
fn clone(&self) -> BridgePortVlanMode
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 BridgePortVlanMode
impl Debug for BridgePortVlanMode
source§impl Default for BridgePortVlanMode
impl Default for BridgePortVlanMode
source§impl<'de> Deserialize<'de> for BridgePortVlanMode
impl<'de> Deserialize<'de> for BridgePortVlanMode
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 Display for BridgePortVlanMode
impl Display for BridgePortVlanMode
source§impl PartialEq<BridgePortVlanMode> for BridgePortVlanMode
impl PartialEq<BridgePortVlanMode> for BridgePortVlanMode
source§fn eq(&self, other: &BridgePortVlanMode) -> bool
fn eq(&self, other: &BridgePortVlanMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BridgePortVlanMode
impl Serialize for BridgePortVlanMode
impl Copy for BridgePortVlanMode
impl Eq for BridgePortVlanMode
impl StructuralEq for BridgePortVlanMode
impl StructuralPartialEq for BridgePortVlanMode
Auto Trait Implementations§
impl RefUnwindSafe for BridgePortVlanMode
impl Send for BridgePortVlanMode
impl Sync for BridgePortVlanMode
impl Unpin for BridgePortVlanMode
impl UnwindSafe for BridgePortVlanMode
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
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.