pub struct Ptr<N> { /* private fields */ }
Expand description
PTR record data.
PRT records are used in special domains to point to some other location in the domain space.
The PTR record type is defined in RFC 1035, section 3.3.12.
Implementations
sourceimpl<N> Ptr<N>
impl<N> Ptr<N>
pub fn into_ptrdname(self) -> N
Trait Implementations
sourceimpl<N: ToDname, NN: ToDname> CanonicalOrd<Ptr<NN>> for Ptr<N>
impl<N: ToDname, NN: ToDname> CanonicalOrd<Ptr<NN>> for Ptr<N>
sourcefn canonical_cmp(&self, other: &Ptr<NN>) -> Ordering
fn canonical_cmp(&self, other: &Ptr<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 Ptr<N>
impl<N: ToDname> Compose for Ptr<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 Ptr<N>where
N: Deserialize<'de>,
impl<'de, N> Deserialize<'de> for Ptr<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<Ptr<N>> for AllRecordData<O, N>
impl<O, N> From<Ptr<N>> for AllRecordData<O, N>
sourceimpl<O, N> From<Ptr<N>> for ZoneRecordData<O, N>
impl<O, N> From<Ptr<N>> for ZoneRecordData<O, N>
sourceimpl<Name, SrcName> OctetsFrom<Ptr<SrcName>> for Ptr<Name>where
Name: OctetsFrom<SrcName>,
impl<Name, SrcName> OctetsFrom<Ptr<SrcName>> for Ptr<Name>where
Name: OctetsFrom<SrcName>,
sourcefn octets_from(source: Ptr<SrcName>) -> Result<Self, ShortBuf>
fn octets_from(source: Ptr<SrcName>) -> Result<Self, ShortBuf>
Performs the conversion.
sourceimpl<N: ToDname> Ord for Ptr<N>
impl<N: ToDname> Ord for Ptr<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 Ptr<ParsedDname<Ref>>
impl<Ref: OctetsRef> Parse<Ref> for Ptr<ParsedDname<Ref>>
sourceimpl<N, NN> PartialEq<Ptr<NN>> for Ptr<N>where
N: ToDname,
NN: ToDname,
impl<N, NN> PartialEq<Ptr<NN>> for Ptr<N>where
N: ToDname,
NN: ToDname,
sourceimpl<N, NN> PartialOrd<Ptr<NN>> for Ptr<N>where
N: ToDname,
NN: ToDname,
impl<N, NN> PartialOrd<Ptr<NN>> for Ptr<N>where
N: ToDname,
NN: ToDname,
sourcefn partial_cmp(&self, other: &Ptr<NN>) -> Option<Ordering>
fn partial_cmp(&self, other: &Ptr<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 Ptr<N>
impl<N> RtypeRecordData for Ptr<N>
impl<N: ToDname> Eq for Ptr<N>
Auto Trait Implementations
impl<N> RefUnwindSafe for Ptr<N>where
N: RefUnwindSafe,
impl<N> Send for Ptr<N>where
N: Send,
impl<N> Sync for Ptr<N>where
N: Sync,
impl<N> Unpin for Ptr<N>where
N: Unpin,
impl<N> UnwindSafe for Ptr<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