pub struct ZonemdScheme(/* private fields */);
Expand description
ZONEMD schemes.
This type selects the method by which data is collated and presented as input to the hashing function for use with ZONEMD.
For the currently registered values see the IANA registration. This type is complete as of 2024-11-29.
Implementations§
Source§impl ZonemdScheme
impl ZonemdScheme
Sourcepub const SIMPLE: ZonemdScheme
pub const SIMPLE: ZonemdScheme
Specifies that the SIMPLE scheme is used.
Source§impl ZonemdScheme
impl ZonemdScheme
pub const COMPOSE_LEN: u16 = 1u16
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.
Sourcepub const fn to_mnemonic_str(self) -> Option<&'static str>
pub const fn to_mnemonic_str(self) -> Option<&'static str>
Returns the mnemonic as a &str
for this value if there is one
pub fn parse<'a, Octs: AsRef<[u8]> + ?Sized>( parser: &mut Parser<'a, Octs>, ) -> Result<Self, ParseError>
pub fn compose<Target: OctetsBuilder + ?Sized>( &self, target: &mut Target, ) -> Result<(), Target::AppendError>
Source§impl ZonemdScheme
impl ZonemdScheme
pub fn from_bytes(bytes: &[u8]) -> Option<Self>
Trait Implementations§
Source§impl Clone for ZonemdScheme
impl Clone for ZonemdScheme
Source§fn clone(&self) -> ZonemdScheme
fn clone(&self) -> ZonemdScheme
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 Debug for ZonemdScheme
impl Debug for ZonemdScheme
Source§impl Display for ZonemdScheme
impl Display for ZonemdScheme
Source§impl<'a> From<&'a ZonemdScheme> for u8
impl<'a> From<&'a ZonemdScheme> for u8
Source§fn from(value: &'a ZonemdScheme) -> Self
fn from(value: &'a ZonemdScheme) -> Self
Converts to this type from the input type.
Source§impl From<ZonemdScheme> for u8
impl From<ZonemdScheme> for u8
Source§fn from(value: ZonemdScheme) -> Self
fn from(value: ZonemdScheme) -> Self
Converts to this type from the input type.
Source§impl From<u8> for ZonemdScheme
impl From<u8> for ZonemdScheme
Source§impl FromStr for ZonemdScheme
impl FromStr for ZonemdScheme
Source§impl Hash for ZonemdScheme
impl Hash for ZonemdScheme
Source§impl Ord for ZonemdScheme
impl Ord for ZonemdScheme
Source§fn cmp(&self, other: &ZonemdScheme) -> Ordering
fn cmp(&self, other: &ZonemdScheme) -> 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 ZonemdScheme
impl PartialEq for ZonemdScheme
Source§impl PartialOrd for ZonemdScheme
impl PartialOrd for ZonemdScheme
Source§impl ZonefileFmt for ZonemdScheme
impl ZonefileFmt for ZonemdScheme
Source§fn fmt(&self, p: &mut impl Formatter) -> Result
fn fmt(&self, p: &mut impl Formatter) -> Result
Format the item as zonefile fmt into a
fmt::Formatter
Read moreSource§fn display_zonefile(
&self,
display_kind: DisplayKind,
) -> ZoneFileDisplay<'_, Self>
fn display_zonefile( &self, display_kind: DisplayKind, ) -> ZoneFileDisplay<'_, Self>
Display the item as a zonefile Read more
impl Copy for ZonemdScheme
impl Eq for ZonemdScheme
impl StructuralPartialEq for ZonemdScheme
Auto Trait Implementations§
impl Freeze for ZonemdScheme
impl RefUnwindSafe for ZonemdScheme
impl Send for ZonemdScheme
impl Sync for ZonemdScheme
impl Unpin for ZonemdScheme
impl UnwindSafe for ZonemdScheme
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.