pub struct Md<N: ?Sized> { /* private fields */ }
Expand description
MD record data.
The MD record specifices a host which has a mail agent for the domain which should be able to deliver mail for the domain.
The MD record is obsolete. It is recommended to either reject the record or convert them into an Mx record at preference 0.
The MD record type is defined in RFC 1035, section 3.3.4.
Implementations§
Trait Implementations§
source§impl<N: ToName, NN: ToName> CanonicalOrd<Md<NN>> for Md<N>
impl<N: ToName, NN: ToName> CanonicalOrd<Md<NN>> for Md<N>
source§fn canonical_cmp(&self, other: &Md<NN>) -> Ordering
fn canonical_cmp(&self, other: &Md<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: ToName> ComposeRecordData for Md<N>
impl<N: ToName> ComposeRecordData for Md<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<Md<Target>> for Md<Name>where
Name: FlattenInto<Target>,
impl<Name, Target> FlattenInto<Md<Target>> for Md<Name>where
Name: FlattenInto<Target>,
type AppendError = <Name as FlattenInto<Target>>::AppendError
fn try_flatten_into(self) -> Result<Md<Target>, Self::AppendError>
source§impl<O, N> From<Md<N>> for AllRecordData<O, N>
impl<O, N> From<Md<N>> for AllRecordData<O, N>
source§impl<O, N> From<Md<N>> for ZoneRecordData<O, N>
impl<O, N> From<Md<N>> for ZoneRecordData<O, N>
source§impl<Name, SrcName> OctetsFrom<Md<SrcName>> for Md<Name>where
Name: OctetsFrom<SrcName>,
impl<Name, SrcName> OctetsFrom<Md<SrcName>> for Md<Name>where
Name: OctetsFrom<SrcName>,
source§impl<N: ToName> Ord for Md<N>
impl<N: ToName> Ord for Md<N>
source§impl<'a, Octs> ParseRecordData<'a, Octs> for Md<ParsedName<Octs::Range<'a>>>
impl<'a, Octs> ParseRecordData<'a, Octs> for Md<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<N, NN> PartialOrd<Md<NN>> for Md<N>
impl<N, NN> PartialOrd<Md<NN>> for Md<N>
source§impl<N> RecordData for Md<N>
impl<N> RecordData for Md<N>
impl<N: ToName> Eq for Md<N>
Auto Trait Implementations§
impl<N> Freeze for Md<N>
impl<N> RefUnwindSafe for Md<N>where
N: RefUnwindSafe + ?Sized,
impl<N> Send for Md<N>
impl<N> Sync for Md<N>
impl<N> Unpin for Md<N>
impl<N> UnwindSafe for Md<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<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.