pub enum Dhcpv4AuthAlgorithm {
HmacMd5,
Unknown(u8),
}Expand description
The RFC 3118 authentication Algorithm field (option 90, second octet).
Source: RFC 3118 sections 4 and 5.1 and the IANA “DHCP Authentication
Algorithm” sub-registry. The Algorithm value is interpreted relative to the
Protocol. The well-known value is HMAC-MD5 (1), used by the Delayed
Authentication protocol and by RFC 6704. Other values are preserved
verbatim through Dhcpv4AuthAlgorithm::Unknown.
Variants§
HmacMd5
HMAC-MD5 generating function (value 1, RFC 3118 section 5.1).
Unknown(u8)
Any other Algorithm value, preserved verbatim (including the Protocol-0
value 0).
Implementations§
Trait Implementations§
Source§impl Clone for Dhcpv4AuthAlgorithm
impl Clone for Dhcpv4AuthAlgorithm
Source§fn clone(&self) -> Dhcpv4AuthAlgorithm
fn clone(&self) -> Dhcpv4AuthAlgorithm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Dhcpv4AuthAlgorithm
Source§impl Debug for Dhcpv4AuthAlgorithm
impl Debug for Dhcpv4AuthAlgorithm
impl Eq for Dhcpv4AuthAlgorithm
Source§impl Hash for Dhcpv4AuthAlgorithm
impl Hash for Dhcpv4AuthAlgorithm
Source§impl PartialEq for Dhcpv4AuthAlgorithm
impl PartialEq for Dhcpv4AuthAlgorithm
Source§fn eq(&self, other: &Dhcpv4AuthAlgorithm) -> bool
fn eq(&self, other: &Dhcpv4AuthAlgorithm) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Dhcpv4AuthAlgorithm
Auto Trait Implementations§
impl Freeze for Dhcpv4AuthAlgorithm
impl RefUnwindSafe for Dhcpv4AuthAlgorithm
impl Send for Dhcpv4AuthAlgorithm
impl Sync for Dhcpv4AuthAlgorithm
impl Unpin for Dhcpv4AuthAlgorithm
impl UnsafeUnpin for Dhcpv4AuthAlgorithm
impl UnwindSafe for Dhcpv4AuthAlgorithm
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more