pub struct Nsec3<Octs> { /* private fields */ }
Implementations§
source§impl<Octs> Nsec3<Octs>
impl<Octs> Nsec3<Octs>
pub fn new( hash_algorithm: Nsec3HashAlg, flags: u8, iterations: u16, salt: Nsec3Salt<Octs>, next_owner: OwnerHash<Octs>, types: RtypeBitmap<Octs> ) -> Self
pub fn hash_algorithm(&self) -> Nsec3HashAlg
pub fn flags(&self) -> u8
pub fn opt_out(&self) -> bool
pub fn iterations(&self) -> u16
pub fn salt(&self) -> &Nsec3Salt<Octs>
pub fn next_owner(&self) -> &OwnerHash<Octs>
pub fn types(&self) -> &RtypeBitmap<Octs>
pub fn scan<S: Scanner<Octets = Octs>>( scanner: &mut S ) -> Result<Self, S::Error>
source§impl<SrcOcts> Nsec3<SrcOcts>
impl<SrcOcts> Nsec3<SrcOcts>
pub fn flatten_into<Octs>(self) -> Result<Nsec3<Octs>, PushError>where Octs: OctetsFrom<SrcOcts>,
Trait Implementations§
source§impl<Octs, Other> CanonicalOrd<Nsec3<Other>> for Nsec3<Octs>where
Octs: AsRef<[u8]>,
Other: AsRef<[u8]>,
impl<Octs, Other> CanonicalOrd<Nsec3<Other>> for Nsec3<Octs>where Octs: AsRef<[u8]>, Other: AsRef<[u8]>,
source§fn canonical_cmp(&self, other: &Nsec3<Other>) -> Ordering
fn canonical_cmp(&self, other: &Nsec3<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 Nsec3<Octs>
impl<Octs: AsRef<[u8]>> ComposeRecordData for Nsec3<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<Nsec3<O>> for AllRecordData<O, N>
impl<O, N> From<Nsec3<O>> for AllRecordData<O, N>
source§impl<O, N> From<Nsec3<O>> for ZoneRecordData<O, N>
impl<O, N> From<Nsec3<O>> for ZoneRecordData<O, N>
source§impl<Octs, SrcOcts> OctetsFrom<Nsec3<SrcOcts>> for Nsec3<Octs>where
Octs: OctetsFrom<SrcOcts>,
impl<Octs, SrcOcts> OctetsFrom<Nsec3<SrcOcts>> for Nsec3<Octs>where Octs: OctetsFrom<SrcOcts>,
type Error = <Octs as OctetsFrom<SrcOcts>>::Error
source§impl<Octs: AsRef<[u8]>> Ord for Nsec3<Octs>
impl<Octs: AsRef<[u8]>> Ord for Nsec3<Octs>
source§impl<'a, Octs> ParseRecordData<'a, Octs> for Nsec3<Octs::Range<'a>>where
Octs: Octets + ?Sized,
impl<'a, Octs> ParseRecordData<'a, Octs> for Nsec3<Octs::Range<'a>>where Octs: Octets + ?Sized,
source§fn parse_rdata(
rtype: Rtype,
parser: &mut Parser<'a, Octs>
) -> Result<Option<Self>, ParseError>
fn parse_rdata( rtype: Rtype, parser: &mut Parser<'a, Octs> ) -> Result<Option<Self>, ParseError>
Parses the record data. Read more
source§impl<Octs, Other> PartialEq<Nsec3<Other>> for Nsec3<Octs>where
Octs: AsRef<[u8]>,
Other: AsRef<[u8]>,
impl<Octs, Other> PartialEq<Nsec3<Other>> for Nsec3<Octs>where Octs: AsRef<[u8]>, Other: AsRef<[u8]>,
source§impl<Octs, Other> PartialOrd<Nsec3<Other>> for Nsec3<Octs>where
Octs: AsRef<[u8]>,
Other: AsRef<[u8]>,
impl<Octs, Other> PartialOrd<Nsec3<Other>> for Nsec3<Octs>where Octs: AsRef<[u8]>, Other: AsRef<[u8]>,
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 Nsec3<Octs>
impl<Octs> RecordData for Nsec3<Octs>
impl<Octs: AsRef<[u8]>> Eq for Nsec3<Octs>
Auto Trait Implementations§
impl<Octs> RefUnwindSafe for Nsec3<Octs>where Octs: RefUnwindSafe,
impl<Octs> Send for Nsec3<Octs>where Octs: Send,
impl<Octs> Sync for Nsec3<Octs>where Octs: Sync,
impl<Octs> Unpin for Nsec3<Octs>where Octs: Unpin,
impl<Octs> UnwindSafe for Nsec3<Octs>where Octs: UnwindSafe,
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) -> Targetwhere
Self::Error: Into<Infallible>,
fn octets_into(self) -> Targetwhere Self::Error: Into<Infallible>,
Performs an infallible conversion.