pub struct Mf<N> { /* private fields */ }
Expand description
MF record data.
The MF record specifices a host which has a mail agent for the domain which will be accept mail for forwarding to the domain.
The MF record is obsolete. It is recommended to either reject the record or convert them into an Mx record at preference 10.
The MF record type is defined in RFC 1035, section 3.3.5.
Implementations
Trait Implementations
sourceimpl<N: ToDname, NN: ToDname> CanonicalOrd<Mf<NN>> for Mf<N>
impl<N: ToDname, NN: ToDname> CanonicalOrd<Mf<NN>> for Mf<N>
sourcefn canonical_cmp(&self, other: &Mf<NN>) -> Ordering
fn canonical_cmp(&self, other: &Mf<NN>) -> Ordering
Returns the canonical ordering between self
and other
.
sourcefn canonical_lt(&self, other: &Rhs) -> bool
fn canonical_lt(&self, other: &Rhs) -> bool
Returns whether self
is canonically less than other
.
sourcefn canonical_le(&self, other: &Rhs) -> bool
fn canonical_le(&self, other: &Rhs) -> bool
Returns whether self
is canonically less than or equal to other
.
sourcefn canonical_gt(&self, other: &Rhs) -> bool
fn canonical_gt(&self, other: &Rhs) -> bool
Returns whether self
is canonically greater than other
.
sourcefn canonical_ge(&self, other: &Rhs) -> bool
fn canonical_ge(&self, other: &Rhs) -> bool
Returns whether self
is canonically greater than or equal to other
.
sourceimpl<N: ToDname> Compose for Mf<N>
impl<N: ToDname> Compose for Mf<N>
sourcefn compose<T: OctetsBuilder + AsMut<[u8]>>(
&self,
target: &mut T
) -> Result<(), ShortBuf>
fn compose<T: OctetsBuilder + AsMut<[u8]>>(
&self,
target: &mut T
) -> Result<(), ShortBuf>
Appends the concrete representation of the value to the target. Read more
sourcefn compose_canonical<T: OctetsBuilder + AsMut<[u8]>>(
&self,
target: &mut T
) -> Result<(), ShortBuf>
fn compose_canonical<T: OctetsBuilder + AsMut<[u8]>>(
&self,
target: &mut T
) -> Result<(), ShortBuf>
Appends the canonical representation of the value to the target. Read more
sourceimpl<'de, N> Deserialize<'de> for Mf<N>where
N: Deserialize<'de>,
impl<'de, N> Deserialize<'de> for Mf<N>where
N: Deserialize<'de>,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<O, N> From<Mf<N>> for AllRecordData<O, N>
impl<O, N> From<Mf<N>> for AllRecordData<O, N>
sourceimpl<O, N> From<Mf<N>> for ZoneRecordData<O, N>
impl<O, N> From<Mf<N>> for ZoneRecordData<O, N>
sourceimpl<Name, SrcName> OctetsFrom<Mf<SrcName>> for Mf<Name>where
Name: OctetsFrom<SrcName>,
impl<Name, SrcName> OctetsFrom<Mf<SrcName>> for Mf<Name>where
Name: OctetsFrom<SrcName>,
sourcefn octets_from(source: Mf<SrcName>) -> Result<Self, ShortBuf>
fn octets_from(source: Mf<SrcName>) -> Result<Self, ShortBuf>
Performs the conversion.
sourceimpl<N: ToDname> Ord for Mf<N>
impl<N: ToDname> Ord for Mf<N>
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<Ref: OctetsRef> Parse<Ref> for Mf<ParsedDname<Ref>>
impl<Ref: OctetsRef> Parse<Ref> for Mf<ParsedDname<Ref>>
sourceimpl<N, NN> PartialEq<Mf<NN>> for Mf<N>where
N: ToDname,
NN: ToDname,
impl<N, NN> PartialEq<Mf<NN>> for Mf<N>where
N: ToDname,
NN: ToDname,
sourceimpl<N, NN> PartialOrd<Mf<NN>> for Mf<N>where
N: ToDname,
NN: ToDname,
impl<N, NN> PartialOrd<Mf<NN>> for Mf<N>where
N: ToDname,
NN: ToDname,
sourcefn partial_cmp(&self, other: &Mf<NN>) -> Option<Ordering>
fn partial_cmp(&self, other: &Mf<NN>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl<N> RtypeRecordData for Mf<N>
impl<N> RtypeRecordData for Mf<N>
impl<N: ToDname> Eq for Mf<N>
Auto Trait Implementations
impl<N> RefUnwindSafe for Mf<N>where
N: RefUnwindSafe,
impl<N> Send for Mf<N>where
N: Send,
impl<N> Sync for Mf<N>where
N: Sync,
impl<N> Unpin for Mf<N>where
N: Unpin,
impl<N> UnwindSafe for Mf<N>where
N: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
sourcefn octets_into(self) -> Result<Target, ShortBuf>
fn octets_into(self) -> Result<Target, ShortBuf>
Performs the conversion.
sourceimpl<Octets, T> ParseRecordData<Octets> for Twhere
T: RtypeRecordData + Parse<Octets> + Compose,
impl<Octets, T> ParseRecordData<Octets> for Twhere
T: RtypeRecordData + Parse<Octets> + Compose,
sourcefn parse_data(
rtype: Rtype,
parser: &mut Parser<Octets>
) -> Result<Option<T>, ParseError>
fn parse_data(
rtype: Rtype,
parser: &mut Parser<Octets>
) -> Result<Option<T>, ParseError>
Parses the record data. Read more