Enum nmstate::Dhcpv6Duid
source · #[non_exhaustive]
pub enum Dhcpv6Duid {
LinkLayerAddressPlusTime,
EnterpriseNumber,
LinkLayerAddress,
Uuid,
Other(String),
}
Expand description
DHCPv6 Unique Identifier
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.
LinkLayerAddressPlusTime
DUID Based on Link-Layer Address Plus Time
Serialize and deserialize to/from llt
.
EnterpriseNumber
DUID Assigned by Vendor Based on Enterprise Number
Serialize and deserialize to/from en
.
LinkLayerAddress
DUID Assigned by Vendor Based on Enterprise Number
Serialize and deserialize to/from ll
.
Uuid
DUID Based on Universally Unique Identifier
Serialize and deserialize to/from uuid
.
Other(String)
Backend specific
Trait Implementations§
source§impl Clone for Dhcpv6Duid
impl Clone for Dhcpv6Duid
source§fn clone(&self) -> Dhcpv6Duid
fn clone(&self) -> Dhcpv6Duid
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 Dhcpv6Duid
impl Debug for Dhcpv6Duid
source§impl<'de> Deserialize<'de> for Dhcpv6Duid
impl<'de> Deserialize<'de> for Dhcpv6Duid
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 Dhcpv6Duid
impl Display for Dhcpv6Duid
source§impl From<Dhcpv6Duid> for String
impl From<Dhcpv6Duid> for String
source§fn from(v: Dhcpv6Duid) -> Self
fn from(v: Dhcpv6Duid) -> Self
Converts to this type from the input type.
source§impl From<String> for Dhcpv6Duid
impl From<String> for Dhcpv6Duid
source§impl PartialEq<Dhcpv6Duid> for Dhcpv6Duid
impl PartialEq<Dhcpv6Duid> for Dhcpv6Duid
source§fn eq(&self, other: &Dhcpv6Duid) -> bool
fn eq(&self, other: &Dhcpv6Duid) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Dhcpv6Duid
impl Serialize for Dhcpv6Duid
impl Eq for Dhcpv6Duid
impl StructuralEq for Dhcpv6Duid
impl StructuralPartialEq for Dhcpv6Duid
Auto Trait Implementations§
impl RefUnwindSafe for Dhcpv6Duid
impl Send for Dhcpv6Duid
impl Sync for Dhcpv6Duid
impl Unpin for Dhcpv6Duid
impl UnwindSafe for Dhcpv6Duid
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.