pub struct Zonemd<Octs: ?Sized> { /* private fields */ }
Expand description
The ZONEMD Resource Record conveys the digest data in the zone itself.
Implementations§
source§impl<Octs> Zonemd<Octs>
impl<Octs> Zonemd<Octs>
sourcepub fn new(
serial: Serial,
scheme: Scheme,
algo: Algorithm,
digest: Octs,
) -> Self
pub fn new( serial: Serial, scheme: Scheme, algo: Algorithm, digest: Octs, ) -> Self
Create a Zonemd record data from provided parameters.
Trait Implementations§
source§impl<Octs, Other> CanonicalOrd<Zonemd<Other>> for Zonemd<Octs>
impl<Octs, Other> CanonicalOrd<Zonemd<Other>> for Zonemd<Octs>
source§fn canonical_cmp(&self, other: &Zonemd<Other>) -> Ordering
fn canonical_cmp(&self, other: &Zonemd<Other>) -> Ordering
Returns the canonical ordering between
self
and other
.source§fn canonical_lt(&self, other: &Rhs) -> bool
fn canonical_lt(&self, other: &Rhs) -> bool
Returns whether
self
is canonically less than other
.source§fn canonical_le(&self, other: &Rhs) -> bool
fn canonical_le(&self, other: &Rhs) -> bool
Returns whether
self
is canonically less than or equal to other
.source§fn canonical_gt(&self, other: &Rhs) -> bool
fn canonical_gt(&self, other: &Rhs) -> bool
Returns whether
self
is canonically greater than other
.source§fn canonical_ge(&self, other: &Rhs) -> bool
fn canonical_ge(&self, other: &Rhs) -> bool
Returns whether
self
is canonically greater than or equal to other
.source§impl<Octs: AsRef<[u8]>> ComposeRecordData for Zonemd<Octs>
impl<Octs: AsRef<[u8]>> ComposeRecordData for Zonemd<Octs>
source§fn rdlen(&self, _compress: bool) -> Option<u16>
fn rdlen(&self, _compress: bool) -> Option<u16>
Returns the length of the record data if available. Read more
source§fn compose_rdata<Target: Composer + ?Sized>(
&self,
target: &mut Target,
) -> Result<(), Target::AppendError>
fn compose_rdata<Target: Composer + ?Sized>( &self, target: &mut Target, ) -> Result<(), Target::AppendError>
Appends the wire format of the record data into
target
.source§fn compose_canonical_rdata<Target: Composer + ?Sized>(
&self,
target: &mut Target,
) -> Result<(), Target::AppendError>
fn compose_canonical_rdata<Target: Composer + ?Sized>( &self, target: &mut Target, ) -> Result<(), Target::AppendError>
Appends the canonical wire format of the record data into
target
.source§fn compose_len_rdata<Target: Composer + ?Sized>(
&self,
target: &mut Target,
) -> Result<(), Target::AppendError>
fn compose_len_rdata<Target: Composer + ?Sized>( &self, target: &mut Target, ) -> Result<(), Target::AppendError>
Appends the record data prefixed with its length.
source§fn compose_canonical_len_rdata<Target: Composer + ?Sized>(
&self,
target: &mut Target,
) -> Result<(), Target::AppendError>
fn compose_canonical_len_rdata<Target: Composer + ?Sized>( &self, target: &mut Target, ) -> Result<(), Target::AppendError>
Appends the record data prefixed with its length.
source§impl<O, N> From<Zonemd<O>> for AllRecordData<O, N>
impl<O, N> From<Zonemd<O>> for AllRecordData<O, N>
source§impl<O, N> From<Zonemd<O>> for ZoneRecordData<O, N>
impl<O, N> From<Zonemd<O>> for ZoneRecordData<O, N>
source§impl<Octs: AsRef<[u8]>> Ord for Zonemd<Octs>
impl<Octs: AsRef<[u8]>> Ord for Zonemd<Octs>
source§impl<Octs, Other> PartialEq<Zonemd<Other>> for Zonemd<Octs>
impl<Octs, Other> PartialEq<Zonemd<Other>> for Zonemd<Octs>
source§impl<Octs, Other> PartialOrd<Zonemd<Other>> for Zonemd<Octs>
impl<Octs, Other> PartialOrd<Zonemd<Other>> for Zonemd<Octs>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<Octs> RecordData for Zonemd<Octs>
impl<Octs> RecordData for Zonemd<Octs>
impl<Octs: AsRef<[u8]> + ?Sized> Eq for Zonemd<Octs>
Auto Trait Implementations§
impl<Octs> Freeze for Zonemd<Octs>
impl<Octs> RefUnwindSafe for Zonemd<Octs>where
Octs: RefUnwindSafe + ?Sized,
impl<Octs> Send for Zonemd<Octs>
impl<Octs> Sync for Zonemd<Octs>
impl<Octs> Unpin for Zonemd<Octs>
impl<Octs> UnwindSafe for Zonemd<Octs>where
Octs: UnwindSafe + ?Sized,
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<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.