Enum nmstate::Dhcpv4ClientId
source · #[non_exhaustive]
pub enum Dhcpv4ClientId {
LinkLayerAddress,
IaidPlusDuid,
Other(String),
}
Expand description
DHCPv4 client ID
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.
LinkLayerAddress
Use link layer address as DHCPv4 client ID.
Serialize and deserialize to/from ll
.
IaidPlusDuid
RFC 4361 type 255, 32 bits IAID followed by DUID.
Serialize and deserialize to/from iaid+duid
.
Other(String)
hex string or backend specific client id type
Trait Implementations§
source§impl Clone for Dhcpv4ClientId
impl Clone for Dhcpv4ClientId
source§fn clone(&self) -> Dhcpv4ClientId
fn clone(&self) -> Dhcpv4ClientId
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 Dhcpv4ClientId
impl Debug for Dhcpv4ClientId
source§impl<'de> Deserialize<'de> for Dhcpv4ClientId
impl<'de> Deserialize<'de> for Dhcpv4ClientId
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 Dhcpv4ClientId
impl Display for Dhcpv4ClientId
source§impl From<Dhcpv4ClientId> for String
impl From<Dhcpv4ClientId> for String
source§fn from(v: Dhcpv4ClientId) -> Self
fn from(v: Dhcpv4ClientId) -> Self
Converts to this type from the input type.
source§impl From<String> for Dhcpv4ClientId
impl From<String> for Dhcpv4ClientId
source§impl PartialEq<Dhcpv4ClientId> for Dhcpv4ClientId
impl PartialEq<Dhcpv4ClientId> for Dhcpv4ClientId
source§fn eq(&self, other: &Dhcpv4ClientId) -> bool
fn eq(&self, other: &Dhcpv4ClientId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Dhcpv4ClientId
impl Serialize for Dhcpv4ClientId
impl Eq for Dhcpv4ClientId
impl StructuralEq for Dhcpv4ClientId
impl StructuralPartialEq for Dhcpv4ClientId
Auto Trait Implementations§
impl RefUnwindSafe for Dhcpv4ClientId
impl Send for Dhcpv4ClientId
impl Sync for Dhcpv4ClientId
impl Unpin for Dhcpv4ClientId
impl UnwindSafe for Dhcpv4ClientId
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.