Enum nmstate::BridgePortTunkTag
source · #[non_exhaustive]
pub enum BridgePortTunkTag {
Id(u16),
IdRange(BridgePortVlanRange),
}
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.
Implementations§
source§impl BridgePortTunkTag
impl BridgePortTunkTag
pub fn get_vlan_tag_range(&self) -> (u16, u16)
Trait Implementations§
source§impl Clone for BridgePortTunkTag
impl Clone for BridgePortTunkTag
source§fn clone(&self) -> BridgePortTunkTag
fn clone(&self) -> BridgePortTunkTag
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 BridgePortTunkTag
impl Debug for BridgePortTunkTag
source§impl<'de> Deserialize<'de> for BridgePortTunkTag
impl<'de> Deserialize<'de> for BridgePortTunkTag
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 BridgePortTunkTag
impl Display for BridgePortTunkTag
source§impl PartialEq<BridgePortTunkTag> for BridgePortTunkTag
impl PartialEq<BridgePortTunkTag> for BridgePortTunkTag
source§fn eq(&self, other: &BridgePortTunkTag) -> bool
fn eq(&self, other: &BridgePortTunkTag) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BridgePortTunkTag
impl Serialize for BridgePortTunkTag
impl Eq for BridgePortTunkTag
impl StructuralEq for BridgePortTunkTag
impl StructuralPartialEq for BridgePortTunkTag
Auto Trait Implementations§
impl RefUnwindSafe for BridgePortTunkTag
impl Send for BridgePortTunkTag
impl Sync for BridgePortTunkTag
impl Unpin for BridgePortTunkTag
impl UnwindSafe for BridgePortTunkTag
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.