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
sourceimpl Clone for Dhcpv6Duid
impl Clone for Dhcpv6Duid
sourcefn clone(&self) -> Dhcpv6Duid
fn clone(&self) -> Dhcpv6Duid
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Dhcpv6Duid
impl Debug for Dhcpv6Duid
sourceimpl<'de> Deserialize<'de> for Dhcpv6Duid
impl<'de> Deserialize<'de> for Dhcpv6Duid
sourcefn 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
sourceimpl Display for Dhcpv6Duid
impl Display for Dhcpv6Duid
sourceimpl From<Dhcpv6Duid> for String
impl From<Dhcpv6Duid> for String
sourcefn from(v: Dhcpv6Duid) -> Self
fn from(v: Dhcpv6Duid) -> Self
Converts to this type from the input type.
sourceimpl From<String> for Dhcpv6Duid
impl From<String> for Dhcpv6Duid
sourceimpl PartialEq<Dhcpv6Duid> for Dhcpv6Duid
impl PartialEq<Dhcpv6Duid> for Dhcpv6Duid
sourcefn eq(&self, other: &Dhcpv6Duid) -> bool
fn eq(&self, other: &Dhcpv6Duid) -> bool
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.