pub struct Chain<Name: ?Sized> { /* private fields */ }
Expand description
Option data for the CHAIN option.
The CHAIN option can be used to request that the queried include all the records necessary to validate the DNSSEC signatures of an answer. The option includes the absolute domain name that serves as the starting point of the included records, i.e., the suffix of the queried name furthest away from the root to which the requesting resolver already has all necessary records.
Implementations§
source§impl<Name: ?Sized> Chain<Name>
impl<Name: ?Sized> Chain<Name>
sourcepub fn new(start: Name) -> Selfwhere
Name: Sized,
pub fn new(start: Name) -> Selfwhere
Name: Sized,
Creates new CHAIN option data using the given name as the start.
sourcepub fn new_ref(start: &Name) -> &Self
pub fn new_ref(start: &Name) -> &Self
Creates a reference to CHAIN option data from a reference to the start.
sourcepub fn start(&self) -> &Name
pub fn start(&self) -> &Name
Returns a reference to the start point.
The start point is the name furthest along the chain to which the requester already has all necessary records.
sourcepub fn into_start(self) -> Namewhere
Name: Sized,
pub fn into_start(self) -> Namewhere
Name: Sized,
Converts the value into the start point.
Trait Implementations§
source§impl<Name: ToDname> ComposeOptData for Chain<Name>
impl<Name: ToDname> ComposeOptData for Chain<Name>
fn compose_len(&self) -> u16
fn compose_option<Target: OctetsBuilder + ?Sized>( &self, target: &mut Target, ) -> Result<(), Target::AppendError>
source§impl<Octs, Name> From<Chain<Name>> for AllOptData<Octs, Name>
impl<Octs, Name> From<Chain<Name>> for AllOptData<Octs, Name>
source§impl<Name, SrcName> OctetsFrom<Chain<SrcName>> for Chain<Name>where
Name: OctetsFrom<SrcName>,
impl<Name, SrcName> OctetsFrom<Chain<SrcName>> for Chain<Name>where
Name: OctetsFrom<SrcName>,
type Error = <Name as OctetsFrom<SrcName>>::Error
source§impl<Name> OptData for Chain<Name>
impl<Name> OptData for Chain<Name>
source§fn code(&self) -> OptionCode
fn code(&self) -> OptionCode
Returns the option code associated with this option.
source§impl<Name: ToDname> Ord for Chain<Name>
impl<Name: ToDname> Ord for Chain<Name>
source§impl<'a, Octs> ParseOptData<'a, Octs> for Chain<Dname<Octs::Range<'a>>>where
Octs: Octets,
impl<'a, Octs> ParseOptData<'a, Octs> for Chain<Dname<Octs::Range<'a>>>where
Octs: Octets,
source§fn parse_option(
code: OptionCode,
parser: &mut Parser<'a, Octs>,
) -> Result<Option<Self>, ParseError>
fn parse_option( code: OptionCode, parser: &mut Parser<'a, Octs>, ) -> Result<Option<Self>, ParseError>
Parses the option code data. Read more
source§impl<Name, OtherName> PartialEq<Chain<OtherName>> for Chain<Name>
impl<Name, OtherName> PartialEq<Chain<OtherName>> for Chain<Name>
source§impl<Name, OtherName> PartialOrd<Chain<OtherName>> for Chain<Name>
impl<Name, OtherName> PartialOrd<Chain<OtherName>> for Chain<Name>
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 moreimpl<Name: Copy + ?Sized> Copy for Chain<Name>
impl<Name: ToDname> Eq for Chain<Name>
Auto Trait Implementations§
impl<Name> Freeze for Chain<Name>
impl<Name> RefUnwindSafe for Chain<Name>where
Name: RefUnwindSafe + ?Sized,
impl<Name> Send for Chain<Name>
impl<Name> Sync for Chain<Name>
impl<Name> Unpin for Chain<Name>
impl<Name> UnwindSafe for Chain<Name>where
Name: 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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<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.