pub struct Nsec3HashAlg(/* private fields */);
Expand description
NSEC3 hash algorithm numbers.
This type selects the algorithm used to hash domain names for use with the NSEC3.
For the currently registered values see the IANA registration. This type is complete as of 2008-03-05.
Implementations§
source§impl Nsec3HashAlg
impl Nsec3HashAlg
sourcepub const SHA1: Nsec3HashAlg = _
pub const SHA1: Nsec3HashAlg = _
Specifies that the SHA-1 hash function is used.
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 const fn to_mnemonic(self) -> Option<&'static [u8]>
pub const 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.
pub fn parse<'a, Octs: AsRef<[u8]> + ?Sized>( parser: &mut Parser<'a, Octs>, ) -> Result<Self, ParseError>
pub const COMPOSE_LEN: u16 = 1u16
pub fn compose<Target: OctetsBuilder + ?Sized>( &self, target: &mut Target, ) -> Result<(), Target::AppendError>
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 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 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§fn cmp(&self, other: &Nsec3HashAlg) -> Ordering
fn cmp(&self, other: &Nsec3HashAlg) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for Nsec3HashAlg
impl PartialEq for Nsec3HashAlg
source§impl PartialOrd for Nsec3HashAlg
impl PartialOrd for Nsec3HashAlg
impl Copy for Nsec3HashAlg
impl Eq for Nsec3HashAlg
impl StructuralPartialEq 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.