pub struct Mb<N> { /* private fields */ }
Expand description
MB record data.
The experimental MB record specifies a host that serves a mailbox.
The MB record type is defined in RFC 1035, section 3.3.3.
Implementations
Trait Implementations
sourceimpl<N: ToDname, NN: ToDname> CanonicalOrd<Mb<NN>> for Mb<N>
impl<N: ToDname, NN: ToDname> CanonicalOrd<Mb<NN>> for Mb<N>
sourcefn canonical_cmp(&self, other: &Mb<NN>) -> Ordering
fn canonical_cmp(&self, other: &Mb<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 Mb<N>
impl<N: ToDname> Compose for Mb<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 Mb<N>where
N: Deserialize<'de>,
impl<'de, N> Deserialize<'de> for Mb<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<Mb<N>> for AllRecordData<O, N>
impl<O, N> From<Mb<N>> for AllRecordData<O, N>
sourceimpl<O, N> From<Mb<N>> for ZoneRecordData<O, N>
impl<O, N> From<Mb<N>> for ZoneRecordData<O, N>
sourceimpl<Name, SrcName> OctetsFrom<Mb<SrcName>> for Mb<Name>where
Name: OctetsFrom<SrcName>,
impl<Name, SrcName> OctetsFrom<Mb<SrcName>> for Mb<Name>where
Name: OctetsFrom<SrcName>,
sourcefn octets_from(source: Mb<SrcName>) -> Result<Self, ShortBuf>
fn octets_from(source: Mb<SrcName>) -> Result<Self, ShortBuf>
Performs the conversion.
sourceimpl<N: ToDname> Ord for Mb<N>
impl<N: ToDname> Ord for Mb<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 Mb<ParsedDname<Ref>>
impl<Ref: OctetsRef> Parse<Ref> for Mb<ParsedDname<Ref>>
sourceimpl<N, NN> PartialEq<Mb<NN>> for Mb<N>where
N: ToDname,
NN: ToDname,
impl<N, NN> PartialEq<Mb<NN>> for Mb<N>where
N: ToDname,
NN: ToDname,
sourceimpl<N, NN> PartialOrd<Mb<NN>> for Mb<N>where
N: ToDname,
NN: ToDname,
impl<N, NN> PartialOrd<Mb<NN>> for Mb<N>where
N: ToDname,
NN: ToDname,
sourcefn partial_cmp(&self, other: &Mb<NN>) -> Option<Ordering>
fn partial_cmp(&self, other: &Mb<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 Mb<N>
impl<N> RtypeRecordData for Mb<N>
impl<N: ToDname> Eq for Mb<N>
Auto Trait Implementations
impl<N> RefUnwindSafe for Mb<N>where
N: RefUnwindSafe,
impl<N> Send for Mb<N>where
N: Send,
impl<N> Sync for Mb<N>where
N: Sync,
impl<N> Unpin for Mb<N>where
N: Unpin,
impl<N> UnwindSafe for Mb<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