pub struct Mg<N: ?Sized> { /* private fields */ }
Expand description
MG record data.
The MG record specifices a mailbox which is a member of the mail group specified by the domain name.
The MG record is experimental.
The MG record type is defined in RFC 1035, section 3.3.6.
Implementations§
source§impl<Octs: Octets> Mg<ParsedDname<Octs>>
impl<Octs: Octets> Mg<ParsedDname<Octs>>
pub fn flatten_into<Target>(self) -> Result<Mg<Dname<Target>>, PushError>where Target: for<'a> OctetsFrom<Octs::Range<'a>> + FromBuilder, <Target as FromBuilder>::Builder: EmptyBuilder,
Trait Implementations§
source§impl<N: ToDname, NN: ToDname> CanonicalOrd<Mg<NN>> for Mg<N>
impl<N: ToDname, NN: ToDname> CanonicalOrd<Mg<NN>> for Mg<N>
source§fn canonical_cmp(&self, other: &Mg<NN>) -> Ordering
fn canonical_cmp(&self, other: &Mg<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 Mg<N>
impl<N: ToDname> ComposeRecordData for Mg<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>where
Target: Composer + ?Sized,
fn compose_canonical_rdata<Target>( &self, target: &mut Target ) -> Result<(), Target::AppendError>where Target: Composer + ?Sized,
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<Mg<N>> for AllRecordData<O, N>
impl<O, N> From<Mg<N>> for AllRecordData<O, N>
source§impl<O, N> From<Mg<N>> for ZoneRecordData<O, N>
impl<O, N> From<Mg<N>> for ZoneRecordData<O, N>
source§impl<Name, SrcName> OctetsFrom<Mg<SrcName>> for Mg<Name>where
Name: OctetsFrom<SrcName>,
impl<Name, SrcName> OctetsFrom<Mg<SrcName>> for Mg<Name>where Name: OctetsFrom<SrcName>,
type Error = <Name as OctetsFrom<SrcName>>::Error
source§impl<N: ToDname> Ord for Mg<N>
impl<N: ToDname> Ord for Mg<N>
source§impl<'a, Octs> ParseRecordData<'a, Octs> for Mg<ParsedDname<Octs::Range<'a>>>where
Octs: Octets + ?Sized,
impl<'a, Octs> ParseRecordData<'a, Octs> for Mg<ParsedDname<Octs::Range<'a>>>where Octs: Octets + ?Sized,
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<Mg<NN>> for Mg<N>where
N: ToDname,
NN: ToDname,
impl<N, NN> PartialEq<Mg<NN>> for Mg<N>where N: ToDname, NN: ToDname,
source§impl<N, NN> PartialOrd<Mg<NN>> for Mg<N>where
N: ToDname,
NN: ToDname,
impl<N, NN> PartialOrd<Mg<NN>> for Mg<N>where 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<N> RecordData for Mg<N>
impl<N> RecordData for Mg<N>
impl<N: ToDname> Eq for Mg<N>
Auto Trait Implementations§
impl<N: ?Sized> RefUnwindSafe for Mg<N>where N: RefUnwindSafe,
impl<N: ?Sized> Send for Mg<N>where N: Send,
impl<N: ?Sized> Sync for Mg<N>where N: Sync,
impl<N: ?Sized> Unpin for Mg<N>where N: Unpin,
impl<N: ?Sized> UnwindSafe for Mg<N>where N: 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.