pub struct Nsec<Octs, Name> { /* private fields */ }
Implementations§
source§impl<Octs, Name> Nsec<Octs, Name>
impl<Octs, Name> Nsec<Octs, Name>
pub fn new(next_name: Name, types: RtypeBitmap<Octs>) -> Self
pub fn next_name(&self) -> &Name
pub fn set_next_name(&mut self, next_name: Name)
pub fn types(&self) -> &RtypeBitmap<Octs>
pub fn scan<S: Scanner<Octets = Octs, Name = Name>>( scanner: &mut S, ) -> Result<Self, S::Error>
Trait Implementations§
source§impl<O, OO, N, NN> CanonicalOrd<Nsec<OO, NN>> for Nsec<O, N>
impl<O, OO, N, NN> CanonicalOrd<Nsec<OO, NN>> for Nsec<O, N>
source§fn canonical_cmp(&self, other: &Nsec<OO, NN>) -> Ordering
fn canonical_cmp(&self, other: &Nsec<OO, NN>) -> 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, Name> ComposeRecordData for Nsec<Octs, Name>
impl<Octs, Name> ComposeRecordData for Nsec<Octs, Name>
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<Octs, TOcts, Name, TName> FlattenInto<Nsec<TOcts, TName>> for Nsec<Octs, Name>
impl<Octs, TOcts, Name, TName> FlattenInto<Nsec<TOcts, TName>> for Nsec<Octs, Name>
type AppendError = <TOcts as OctetsFrom<Octs>>::Error
fn try_flatten_into(self) -> Result<Nsec<TOcts, TName>, TOcts::Error>
source§impl<O, N> From<Nsec<O, N>> for AllRecordData<O, N>
impl<O, N> From<Nsec<O, N>> for AllRecordData<O, N>
source§impl<O, N> From<Nsec<O, N>> for ZoneRecordData<O, N>
impl<O, N> From<Nsec<O, N>> for ZoneRecordData<O, N>
source§impl<Octs, SrcOcts, Name, SrcName> OctetsFrom<Nsec<SrcOcts, SrcName>> for Nsec<Octs, Name>
impl<Octs, SrcOcts, Name, SrcName> OctetsFrom<Nsec<SrcOcts, SrcName>> for Nsec<Octs, Name>
source§impl<O, N> Ord for Nsec<O, N>
impl<O, N> Ord for Nsec<O, N>
source§impl<'a, Octs: Octets + ?Sized> ParseRecordData<'a, Octs> for Nsec<Octs::Range<'a>, ParsedName<Octs::Range<'a>>>
impl<'a, Octs: Octets + ?Sized> ParseRecordData<'a, Octs> for Nsec<Octs::Range<'a>, ParsedName<Octs::Range<'a>>>
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<O, OO, N, NN> PartialOrd<Nsec<OO, NN>> for Nsec<O, N>
impl<O, OO, N, NN> PartialOrd<Nsec<OO, NN>> for Nsec<O, N>
source§impl<Octs, Name> RecordData for Nsec<Octs, Name>
impl<Octs, Name> RecordData for Nsec<Octs, Name>
impl<O: AsRef<[u8]>, N: ToName> Eq for Nsec<O, N>
Auto Trait Implementations§
impl<Octs, Name> Freeze for Nsec<Octs, Name>
impl<Octs, Name> RefUnwindSafe for Nsec<Octs, Name>where
Name: RefUnwindSafe,
Octs: RefUnwindSafe,
impl<Octs, Name> Send for Nsec<Octs, Name>
impl<Octs, Name> Sync for Nsec<Octs, Name>
impl<Octs, Name> Unpin for Nsec<Octs, Name>
impl<Octs, Name> UnwindSafe for Nsec<Octs, Name>where
Name: UnwindSafe,
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<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.