pub struct Dname<N: ?Sized> { /* private fields */ }
Expand description
DNAME record data.
The DNAME record provides redirection for a subtree of the domain name tree in the DNS.
The DNAME type is defined in RFC 6672.
Implementations§
Trait Implementations§
source§impl<N: ToDname, NN: ToDname> CanonicalOrd<Dname<NN>> for Dname<N>
impl<N: ToDname, NN: ToDname> CanonicalOrd<Dname<NN>> for Dname<N>
source§fn canonical_cmp(&self, other: &Dname<NN>) -> Ordering
fn canonical_cmp(&self, other: &Dname<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<N: ToDname> ComposeRecordData for Dname<N>
impl<N: ToDname> ComposeRecordData for Dname<N>
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>(
&self,
target: &mut Target,
) -> Result<(), Target::AppendError>
fn compose_canonical_rdata<Target>( &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<Name, Target> FlattenInto<Dname<Target>> for Dname<Name>where
Name: FlattenInto<Target>,
impl<Name, Target> FlattenInto<Dname<Target>> for Dname<Name>where
Name: FlattenInto<Target>,
type AppendError = <Name as FlattenInto<Target>>::AppendError
fn try_flatten_into(self) -> Result<Dname<Target>, Self::AppendError>
source§impl<O, N> From<Dname<N>> for AllRecordData<O, N>
impl<O, N> From<Dname<N>> for AllRecordData<O, N>
source§impl<O, N> From<Dname<N>> for ZoneRecordData<O, N>
impl<O, N> From<Dname<N>> for ZoneRecordData<O, N>
source§impl<Name, SrcName> OctetsFrom<Dname<SrcName>> for Dname<Name>where
Name: OctetsFrom<SrcName>,
impl<Name, SrcName> OctetsFrom<Dname<SrcName>> for Dname<Name>where
Name: OctetsFrom<SrcName>,
type Error = <Name as OctetsFrom<SrcName>>::Error
source§impl<N: ToDname> Ord for Dname<N>
impl<N: ToDname> Ord for Dname<N>
source§impl<'a, Octs> ParseRecordData<'a, Octs> for Dname<ParsedDname<Octs::Range<'a>>>
impl<'a, Octs> ParseRecordData<'a, Octs> for Dname<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> PartialEq<Dname<NN>> for Dname<N>
impl<N, NN> PartialEq<Dname<NN>> for Dname<N>
source§impl<N, NN> PartialOrd<Dname<NN>> for Dname<N>
impl<N, NN> PartialOrd<Dname<NN>> for Dname<N>
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<N> RecordData for Dname<N>
impl<N> RecordData for Dname<N>
impl<N: ToDname> Eq for Dname<N>
Auto Trait Implementations§
impl<N> Freeze for Dname<N>
impl<N> RefUnwindSafe for Dname<N>where
N: RefUnwindSafe + ?Sized,
impl<N> Send for Dname<N>
impl<N> Sync for Dname<N>
impl<N> Unpin for Dname<N>
impl<N> UnwindSafe for Dname<N>where
N: 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<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.