pub struct Nsec<Octets, Name> { /* private fields */ }
Implementations§
source§impl<Octets, Name> Nsec<Octets, Name>
impl<Octets, Name> Nsec<Octets, Name>
pub fn new(next_name: Name, types: RtypeBitmap<Octets>) -> Self
pub fn next_name(&self) -> &Name
pub fn set_next_name(&mut self, next_name: Name)
pub fn types(&self) -> &RtypeBitmap<Octets>
source§impl<SrcOctets, Ref> Nsec<SrcOctets, ParsedDname<Ref>>where
SrcOctets: AsRef<[u8]>,
Ref: OctetsRef,
impl<SrcOctets, Ref> Nsec<SrcOctets, ParsedDname<Ref>>where SrcOctets: AsRef<[u8]>, Ref: OctetsRef,
pub fn flatten_into<Octets>( self ) -> Result<Nsec<Octets, Dname<Octets>>, PushError>where Octets: OctetsFrom<SrcOctets> + FromBuilder, <Octets as FromBuilder>::Builder: EmptyBuilder,
Trait Implementations§
source§impl<O, OO, N, NN> CanonicalOrd<Nsec<OO, NN>> for Nsec<O, N>where
O: AsRef<[u8]>,
OO: AsRef<[u8]>,
N: ToDname,
NN: ToDname,
impl<O, OO, N, NN> CanonicalOrd<Nsec<OO, NN>> for Nsec<O, N>where O: AsRef<[u8]>, OO: AsRef<[u8]>, N: ToDname, NN: ToDname,
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<Octets: AsRef<[u8]>, Name: Compose> Compose for Nsec<Octets, Name>
impl<Octets: AsRef<[u8]>, Name: Compose> Compose for Nsec<Octets, Name>
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<Octets, SrcOctets, Name, SrcName> OctetsFrom<Nsec<SrcOctets, SrcName>> for Nsec<Octets, Name>where
Octets: OctetsFrom<SrcOctets>,
Name: OctetsFrom<SrcName>,
impl<Octets, SrcOctets, Name, SrcName> OctetsFrom<Nsec<SrcOctets, SrcName>> for Nsec<Octets, Name>where Octets: OctetsFrom<SrcOctets>, Name: OctetsFrom<SrcName>,
source§impl<O, N> Ord for Nsec<O, N>where
O: AsRef<[u8]>,
N: ToDname,
impl<O, N> Ord for Nsec<O, N>where O: AsRef<[u8]>, N: ToDname,
source§impl<O, OO, N, NN> PartialEq<Nsec<OO, NN>> for Nsec<O, N>where
O: AsRef<[u8]>,
OO: AsRef<[u8]>,
N: ToDname,
NN: ToDname,
impl<O, OO, N, NN> PartialEq<Nsec<OO, NN>> for Nsec<O, N>where O: AsRef<[u8]>, OO: AsRef<[u8]>, N: ToDname, NN: ToDname,
source§impl<O, OO, N, NN> PartialOrd<Nsec<OO, NN>> for Nsec<O, N>where
O: AsRef<[u8]>,
OO: AsRef<[u8]>,
N: ToDname,
NN: ToDname,
impl<O, OO, N, NN> PartialOrd<Nsec<OO, NN>> for Nsec<O, N>where O: AsRef<[u8]>, OO: AsRef<[u8]>, N: ToDname, NN: ToDname,
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<Octets, Name> RtypeRecordData for Nsec<Octets, Name>
impl<Octets, Name> RtypeRecordData for Nsec<Octets, Name>
impl<O: AsRef<[u8]>, N: ToDname> Eq for Nsec<O, N>
Auto Trait Implementations§
impl<Octets, Name> RefUnwindSafe for Nsec<Octets, Name>where Name: RefUnwindSafe, Octets: RefUnwindSafe,
impl<Octets, Name> Send for Nsec<Octets, Name>where Name: Send, Octets: Send,
impl<Octets, Name> Sync for Nsec<Octets, Name>where Name: Sync, Octets: Sync,
impl<Octets, Name> Unpin for Nsec<Octets, Name>where Name: Unpin, Octets: Unpin,
impl<Octets, Name> UnwindSafe for Nsec<Octets, Name>where Name: UnwindSafe, Octets: 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>,
source§fn octets_into(self) -> Result<Target, ShortBuf>
fn octets_into(self) -> Result<Target, ShortBuf>
Performs the conversion.
source§impl<Octets, T> ParseRecordData<Octets> for Twhere
T: RtypeRecordData + Parse<Octets> + Compose,
impl<Octets, T> ParseRecordData<Octets> for Twhere T: RtypeRecordData + Parse<Octets> + Compose,
source§fn parse_data(
rtype: Rtype,
parser: &mut Parser<Octets>
) -> Result<Option<T>, ParseError>
fn parse_data( rtype: Rtype, parser: &mut Parser<Octets> ) -> Result<Option<T>, ParseError>
Parses the record data. Read more