pub enum Nsec3HashAlg {
Sha1,
Int(u8),
}Expand description
NSEC3 Hash Algorithm Numbers
For the currently registered values see the IANA registration. This type is complete as of 2008-03-05.
Variants§
Implementations§
Source§impl Nsec3HashAlg
impl Nsec3HashAlg
Sourcepub fn from_mnemonic(m: &[u8]) -> Option<Self>
pub fn from_mnemonic(m: &[u8]) -> Option<Self>
Returns a value from a well-defined mnemonic.
Sourcepub fn to_mnemonic(self) -> Option<&'static [u8]>
pub fn to_mnemonic(self) -> Option<&'static [u8]>
Returns the mnemonic for this value if there is one.
This will also return a mnemonic if a well-defined variant
is hidden in a Int variant.
Source§impl Nsec3HashAlg
impl Nsec3HashAlg
pub fn from_bytes(bytes: &[u8]) -> Option<Self>
Trait Implementations§
Source§impl Clone for Nsec3HashAlg
impl Clone for Nsec3HashAlg
Source§fn clone(&self) -> Nsec3HashAlg
fn clone(&self) -> Nsec3HashAlg
Returns a duplicate 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 Compose for Nsec3HashAlg
impl Compose for Nsec3HashAlg
Source§impl Debug for Nsec3HashAlg
impl Debug for Nsec3HashAlg
Source§impl Display for Nsec3HashAlg
impl Display for Nsec3HashAlg
Source§impl<'a> From<&'a Nsec3HashAlg> for u8
impl<'a> From<&'a Nsec3HashAlg> for u8
Source§fn from(value: &'a Nsec3HashAlg) -> Self
fn from(value: &'a Nsec3HashAlg) -> Self
Converts to this type from the input type.
Source§impl From<Nsec3HashAlg> for u8
impl From<Nsec3HashAlg> for u8
Source§fn from(value: Nsec3HashAlg) -> Self
fn from(value: Nsec3HashAlg) -> Self
Converts to this type from the input type.
Source§impl From<u8> for Nsec3HashAlg
impl From<u8> for Nsec3HashAlg
Source§impl FromStr for Nsec3HashAlg
impl FromStr for Nsec3HashAlg
Source§impl Hash for Nsec3HashAlg
impl Hash for Nsec3HashAlg
Source§impl Ord for Nsec3HashAlg
impl Ord for Nsec3HashAlg
Source§impl Parse for Nsec3HashAlg
impl Parse for Nsec3HashAlg
Source§impl PartialEq<Nsec3HashAlg> for u8
impl PartialEq<Nsec3HashAlg> for u8
Source§impl PartialEq<u8> for Nsec3HashAlg
impl PartialEq<u8> for Nsec3HashAlg
Source§impl PartialEq for Nsec3HashAlg
impl PartialEq for Nsec3HashAlg
Source§impl PartialOrd<Nsec3HashAlg> for u8
impl PartialOrd<Nsec3HashAlg> for u8
Source§impl PartialOrd<u8> for Nsec3HashAlg
impl PartialOrd<u8> for Nsec3HashAlg
Source§impl PartialOrd for Nsec3HashAlg
impl PartialOrd for Nsec3HashAlg
Source§impl Scan for Nsec3HashAlg
impl Scan for Nsec3HashAlg
impl Copy for Nsec3HashAlg
impl Eq for Nsec3HashAlg
Auto Trait Implementations§
impl Freeze for Nsec3HashAlg
impl RefUnwindSafe for Nsec3HashAlg
impl Send for Nsec3HashAlg
impl Sync for Nsec3HashAlg
impl Unpin for Nsec3HashAlg
impl UnwindSafe for Nsec3HashAlg
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