pub struct Minfo<N> { /* private fields */ }
Expand description
Minfo record data.
The Minfo record specifies a mailbox which is responsible for the mailing list or mailbox and a mailbox that receives error messages related to the list or box.
The Minfo record is experimental.
The Minfo record type is defined in RFC 1035, section 3.3.7.
Implementations§
source§impl<N> Minfo<N>
impl<N> Minfo<N>
sourcepub fn new(rmailbx: N, emailbx: N) -> Self
pub fn new(rmailbx: N, emailbx: N) -> Self
Creates a new Minfo record data from the components.
sourcepub fn rmailbx(&self) -> &N
pub fn rmailbx(&self) -> &N
The responsible mail box.
The domain name specifies the mailbox which is responsible for the mailing list or mailbox. If this domain name is the root, the owner of the Minfo record is responsible for itself.
sourcepub fn emailbx(&self) -> &N
pub fn emailbx(&self) -> &N
The error mail box.
The domain name specifies a mailbox which is to receive error messages related to the mailing list or mailbox specified by the owner of the record. If this is the root domain name, errors should be returned to the sender of the message.
pub fn scan<S: Scanner<Dname = N>>(scanner: &mut S) -> Result<Self, S::Error>
Trait Implementations§
source§impl<N: ToDname, NN: ToDname> CanonicalOrd<Minfo<NN>> for Minfo<N>
impl<N: ToDname, NN: ToDname> CanonicalOrd<Minfo<NN>> for Minfo<N>
source§fn canonical_cmp(&self, other: &Minfo<NN>) -> Ordering
fn canonical_cmp(&self, other: &Minfo<NN>) -> Ordering
self
and other
.source§fn canonical_lt(&self, other: &Rhs) -> bool
fn canonical_lt(&self, other: &Rhs) -> bool
self
is canonically less than other
.source§fn canonical_le(&self, other: &Rhs) -> bool
fn canonical_le(&self, other: &Rhs) -> bool
self
is canonically less than or equal to other
.source§fn canonical_gt(&self, other: &Rhs) -> bool
fn canonical_gt(&self, other: &Rhs) -> bool
self
is canonically greater than other
.source§fn canonical_ge(&self, other: &Rhs) -> bool
fn canonical_ge(&self, other: &Rhs) -> bool
self
is canonically greater than or equal to other
.source§impl<Name: ToDname> ComposeRecordData for Minfo<Name>
impl<Name: ToDname> ComposeRecordData for Minfo<Name>
source§fn rdlen(&self, compress: bool) -> Option<u16>
fn rdlen(&self, compress: bool) -> Option<u16>
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>
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>
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>
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>
source§impl<Name, TName> FlattenInto<Minfo<TName>> for Minfo<Name>where
Name: FlattenInto<TName>,
impl<Name, TName> FlattenInto<Minfo<TName>> for Minfo<Name>where
Name: FlattenInto<TName>,
type AppendError = <Name as FlattenInto<TName>>::AppendError
fn try_flatten_into(self) -> Result<Minfo<TName>, Name::AppendError>
source§impl<O, N> From<Minfo<N>> for AllRecordData<O, N>
impl<O, N> From<Minfo<N>> for AllRecordData<O, N>
source§impl<O, N> From<Minfo<N>> for ZoneRecordData<O, N>
impl<O, N> From<Minfo<N>> for ZoneRecordData<O, N>
source§impl<Name, SrcName> OctetsFrom<Minfo<SrcName>> for Minfo<Name>where
Name: OctetsFrom<SrcName>,
impl<Name, SrcName> OctetsFrom<Minfo<SrcName>> for Minfo<Name>where
Name: OctetsFrom<SrcName>,
type Error = <Name as OctetsFrom<SrcName>>::Error
source§impl<N: ToDname> Ord for Minfo<N>
impl<N: ToDname> Ord for Minfo<N>
source§impl<'a, Octs: Octets + ?Sized> ParseRecordData<'a, Octs> for Minfo<ParsedDname<Octs::Range<'a>>>
impl<'a, Octs: Octets + ?Sized> ParseRecordData<'a, Octs> for Minfo<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>
source§impl<N, NN> PartialEq<Minfo<NN>> for Minfo<N>
impl<N, NN> PartialEq<Minfo<NN>> for Minfo<N>
source§impl<N, NN> PartialOrd<Minfo<NN>> for Minfo<N>
impl<N, NN> PartialOrd<Minfo<NN>> for Minfo<N>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more