pub struct Rrsig<Octs, Name> { /* private fields */ }
Implementations§
source§impl<Octs, Name> Rrsig<Octs, Name>
impl<Octs, Name> Rrsig<Octs, Name>
pub fn new( type_covered: Rtype, algorithm: SecAlg, labels: u8, original_ttl: Ttl, expiration: Serial, inception: Serial, key_tag: u16, signer_name: Name, signature: Octs ) -> Result<Self, LongRecordData>where Octs: AsRef<[u8]>, Name: ToDname,
sourcepub unsafe fn new_unchecked(
type_covered: Rtype,
algorithm: SecAlg,
labels: u8,
original_ttl: Ttl,
expiration: Serial,
inception: Serial,
key_tag: u16,
signer_name: Name,
signature: Octs
) -> Self
pub unsafe fn new_unchecked( type_covered: Rtype, algorithm: SecAlg, labels: u8, original_ttl: Ttl, expiration: Serial, inception: Serial, key_tag: u16, signer_name: Name, signature: Octs ) -> Self
Creates new RRSIG record data without checking.
Safety
The caller needs to ensure that wire format representation of the record data is at most 65,535 octets long.
pub fn type_covered(&self) -> Rtype
pub fn algorithm(&self) -> SecAlg
pub fn labels(&self) -> u8
pub fn original_ttl(&self) -> Ttl
pub fn expiration(&self) -> Serial
pub fn inception(&self) -> Serial
pub fn key_tag(&self) -> u16
pub fn signer_name(&self) -> &Name
pub fn signature(&self) -> &Octs
pub fn set_signature(&mut self, signature: Octs)
pub fn scan<S: Scanner<Octets = Octs, Dname = Name>>( scanner: &mut S ) -> Result<Self, S::Error>where Octs: AsRef<[u8]>, Name: ToDname,
source§impl<Octs, NOcts> Rrsig<Octs, ParsedDname<NOcts>>
impl<Octs, NOcts> Rrsig<Octs, ParsedDname<NOcts>>
pub fn flatten_into<Target>( self ) -> Result<Rrsig<Target, Dname<Target>>, PushError>where NOcts: Octets, Target: OctetsFrom<Octs> + for<'a> OctetsFrom<NOcts::Range<'a>> + FromBuilder, <Target as FromBuilder>::Builder: EmptyBuilder,
Trait Implementations§
source§impl<N, NN, O, OO> CanonicalOrd<Rrsig<OO, NN>> for Rrsig<O, N>where
N: ToDname,
NN: ToDname,
O: AsRef<[u8]>,
OO: AsRef<[u8]>,
impl<N, NN, O, OO> CanonicalOrd<Rrsig<OO, NN>> for Rrsig<O, N>where N: ToDname, NN: ToDname, O: AsRef<[u8]>, OO: AsRef<[u8]>,
source§fn canonical_cmp(&self, other: &Rrsig<OO, NN>) -> Ordering
fn canonical_cmp(&self, other: &Rrsig<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 Rrsig<Octs, Name>where
Octs: AsRef<[u8]>,
Name: ToDname,
impl<Octs, Name> ComposeRecordData for Rrsig<Octs, Name>where Octs: AsRef<[u8]>, Name: ToDname,
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<Rrsig<O, N>> for AllRecordData<O, N>
impl<O, N> From<Rrsig<O, N>> for AllRecordData<O, N>
source§impl<O, N> From<Rrsig<O, N>> for ZoneRecordData<O, N>
impl<O, N> From<Rrsig<O, N>> for ZoneRecordData<O, N>
source§impl<Octs, SrcOcts, Name, SrcName> OctetsFrom<Rrsig<SrcOcts, SrcName>> for Rrsig<Octs, Name>where
Octs: OctetsFrom<SrcOcts>,
Name: OctetsFrom<SrcName>,
Octs::Error: From<Name::Error>,
impl<Octs, SrcOcts, Name, SrcName> OctetsFrom<Rrsig<SrcOcts, SrcName>> for Rrsig<Octs, Name>where Octs: OctetsFrom<SrcOcts>, Name: OctetsFrom<SrcName>, Octs::Error: From<Name::Error>,
type Error = <Octs as OctetsFrom<SrcOcts>>::Error
source§impl<O: AsRef<[u8]>, N: ToDname> Ord for Rrsig<O, N>
impl<O: AsRef<[u8]>, N: ToDname> Ord for Rrsig<O, N>
source§impl<'a, Octs: Octets + ?Sized> ParseRecordData<'a, Octs> for Rrsig<Octs::Range<'a>, ParsedDname<Octs::Range<'a>>>
impl<'a, Octs: Octets + ?Sized> ParseRecordData<'a, Octs> for Rrsig<Octs::Range<'a>, ParsedDname<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<N, NN, O, OO> PartialEq<Rrsig<OO, NN>> for Rrsig<O, N>where
N: ToDname,
NN: ToDname,
O: AsRef<[u8]>,
OO: AsRef<[u8]>,
impl<N, NN, O, OO> PartialEq<Rrsig<OO, NN>> for Rrsig<O, N>where N: ToDname, NN: ToDname, O: AsRef<[u8]>, OO: AsRef<[u8]>,
source§impl<N, NN, O, OO> PartialOrd<Rrsig<OO, NN>> for Rrsig<O, N>where
N: ToDname,
NN: ToDname,
O: AsRef<[u8]>,
OO: AsRef<[u8]>,
impl<N, NN, O, OO> PartialOrd<Rrsig<OO, NN>> for Rrsig<O, N>where N: ToDname, NN: ToDname, O: AsRef<[u8]>, OO: 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, Name> RecordData for Rrsig<Octs, Name>
impl<Octs, Name> RecordData for Rrsig<Octs, Name>
impl<Octs, Name> Eq for Rrsig<Octs, Name>where Octs: AsRef<[u8]>, Name: ToDname,
Auto Trait Implementations§
impl<Octs, Name> RefUnwindSafe for Rrsig<Octs, Name>where Name: RefUnwindSafe, Octs: RefUnwindSafe,
impl<Octs, Name> Send for Rrsig<Octs, Name>where Name: Send, Octs: Send,
impl<Octs, Name> Sync for Rrsig<Octs, Name>where Name: Sync, Octs: Sync,
impl<Octs, Name> Unpin for Rrsig<Octs, Name>where Name: Unpin, Octs: Unpin,
impl<Octs, Name> UnwindSafe for Rrsig<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<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.