Enum domain::base::iana::rtype::Rtype

source ·
pub enum Rtype {
Show 89 variants A, Ns, Md, Mf, Cname, Soa, Mb, Mg, Mr, Null, Wks, Ptr, Hinfo, Minfo, Mx, Txt, Rp, Afsdb, X25, Isdn, Rt, Nsap, Nsapptr, Sig, Key, Px, Gpos, Aaaa, Loc, Nxt, Eid, Nimloc, Srv, Atma, Naptr, Kx, Cert, A6, Dname, Sink, Opt, Apl, Ds, Sshfp, Ipseckey, Rrsig, Nsec, Dnskey, Dhcid, Nsec3, Nsec3param, Tlsa, Smimea, Hip, Ninfo, Rkey, Talink, Cds, Cdnskey, Openpgpkey, Csync, Zonemd, Svcb, Https, Spf, Uinfo, Uid, Gid, Unspec, Nid, L32, L64, Lp, Eui48, Eui64, Tkey, Tsig, Ixfr, Axfr, Mailb, Maila, Any, Uri, Caa, Avc, Doa, Ta, Dlv, Int(u16),
}
Expand description

Resource Record Types.

Each resource records has a 16 bit type value indicating what kind of information is represented by the record. Normal query includes the type of record information is requested for. A few aditional types, called query types, are defined as well and can only be used in questions. This type represents both these types.

The currently assigned values are maintained in an IANA registry. This type is complete as of 2019-01-28.

In order to avoid confusion over capitalization, the mnemonics are treated as single acronyms and therefore all variant names are spelled with an initial capital letter in accordance with the Rust naming guidelines.

Variants§

§

A

A host address.

§

Ns

An authoritative name server.

§

Md

A mail destination.

(Obsolete – use MX)

§

Mf

A mail forwarder.

(Obsolete – use MX)

§

Cname

The canonical name for an alias

§

Soa

Marks the start of a zone of authority.

§

Mb

A mailbox domain name.

(Experimental.)

§

Mg

A mail group member

(Experimental.)

§

Mr

A mail rename domain name.

(Experimental.)

§

Null

A null resource record.

(Experimental.)

§

Wks

A well known service description.

§

Ptr

A domain name pointer.

§

Hinfo

Host information.

§

Minfo

Mailbox or mail list information.

§

Mx

Mail exchange.

§

Txt

Text strings.

§

Rp

For Responsible Person.

See RFC 1183

§

Afsdb

For AFS Data Base location.

See RFC 1183 and RFC 5864.

§

X25

For X.25 PSDN address.

See RFC 1183.

§

Isdn

For ISDN address.

See RFC 1183.

§

Rt

For Route Through.

See RFC 1183

§

Nsap

For SNAP address, NSAP style A record.

See RFC 1706.

§

Nsapptr

For domain name pointer, NSAP style.

See RFC 1348, RFC 1637, RFC 1706.

§

Sig

For security signature.

§

Key

For security key.

§

Px

X.400 mail mapping information.

See RFC 2163.

§

Gpos

Geographical position.

See RFC 1712

§

Aaaa

IPv6 address.

See RFC 3596.

§

Loc

Location information.

See RFC 1876.

§

Nxt

Next domain.

(Obsolete.)

See RFC 3755 and RFC 2535.

§

Eid

Endpoint identifier.

§

Nimloc

Nimrod locator.

§

Srv

Server selection.

See RFC 2782.

§

Atma

ATM address.

§

Naptr

Naming authority pointer.

See RFC 2915, RFC 2168, and RFC 3403.

§

Kx

Key exchanger.

See RFC 2230.

§

Cert

CERT

See RFC 4398.

§

A6

A6.

(Obsolete – use AAAA.)

See RFC 3226, RFC 2874, and RFC 6563.

§

Dname

DNAME.

See RFC 6672.

§

Sink

SINK.

§

Opt

OPT.

See RFC 6891 and RFC 3225.

§

Apl

APL.

See RFC 3123.

§

Ds

Delegation signer.

See RFC 4034 and RFC 3658.

§

Sshfp

SSH key fingerprint.

See RFC 4255.

§

Ipseckey

IPSECKEY

See RFC 4255.

§

Rrsig

RRSIG.

See RFC 4034 and RFC 3755.

§

Nsec

NSEC.

See RFC 4034 and RFC 3755.

§

Dnskey

DNSKEY.

See RFC 4034 and RFC 3755.

§

Dhcid

DHCID.

See RFC 4701.

§

Nsec3

NSEC3

See RFC 5155.

§

Nsec3param

NSEC3PARAM.

See RFC 5155.

§

Tlsa

TLSA.

See RFC 6698.

§

Smimea

S/MIME cert association.

See draft-ietf-dane-smime.

§

Hip

Host Identity Protocol.

See RFC 5205.

§

Ninfo

NINFO.

§

Rkey

RKEY.

Trust Anchor Link

§

Cds

Child DS.

See RFC 7344.

§

Cdnskey

DNSKEY(s) the child wants reflected in DS.

See RFC 7344.

§

Openpgpkey

OpenPGP key.

See draft-ietf-dane-openpgpkey.

§

Csync

Child-to-parent synchronization.

See RFC 7477.

§

Zonemd

Message digest for DNS zone.

See draft-wessels-dns-zone-digest.

§

Svcb

General Purpose Service Endpoints.

See draft-ietf-dnsop-svcb-httpssvc

§

Https

HTTPS Specific Service Endpoints.

See draft-ietf-dnsop-svcb-httpssvc

§

Spf

SPF.

RFC 7208.

§

Uinfo

UINFO.

IANA-Reserved.

§

Uid

UID.

IANA-Reserved.

§

Gid

GID.

IANA-Reserved.

§

Unspec

UNSPEC.

IANA-Reserved.

§

Nid

NID.

See RFC 6742.

§

L32

L32.

See RFC 6742.

§

L64

L64.

See RFC 6742.

§

Lp

LP.

See RFC 6742.

§

Eui48

An EUI-48 address.

See RFC 7043.

§

Eui64

An EUI-64 address.

See RFC 7043.

§

Tkey

Transaction key.

See RFC 2930.

§

Tsig

Transaction signature.

See RFC 2845.

§

Ixfr

Incremental transfer.

See RFC 1995.

§

Axfr

Transfer of entire zone.

See RFC 1035 and RFC 5936.

§

Mailb

Mailbox-related RRs (MB, MG, or MR).

§

Maila

Mail agent RRS.

(Obsolete – see MX.)

§

Any

A request for all records the server/cache has available.

See RFC 1035 and RFC 6895.

§

Uri

URI.

See RFC 7553.

§

Caa

Certification Authority Restriction.

See RFC 6844.

§

Avc

Application visibility and control.

§

Doa

Digital Object Architecture

See draft-durand-doa-over-dns.

§

Ta

DNSSEC trust authorities.

§

Dlv

DNSSEC lookaside validation.

See RFC 4431

§

Int(u16)

A raw value given through its integer.

Implementations§

source§

impl Rtype

source

pub const fn from_int(value: u16) -> Self

Returns a value from its raw integer value.

source

pub const fn to_int(self) -> u16

Returns the raw integer value for a value.

source

pub fn from_mnemonic(m: &[u8]) -> Option<Self>

Returns a value from a well-defined mnemonic.

source

pub const fn to_mnemonic(self) -> Option<&'static [u8]>

Returns the mnemonic for this value if there is one.

This will also return a mnemonic if a well-defined variant is hidden in a Int variant.

source

pub fn parse<'a, Octs: AsRef<[u8]> + ?Sized>( parser: &mut Parser<'a, Octs> ) -> Result<Self, ParseError>

source

pub const COMPOSE_LEN: u16 = 2u16

source

pub fn compose<Target: OctetsBuilder + ?Sized>( &self, target: &mut Target ) -> Result<(), Target::AppendError>

source§

impl Rtype

source

pub fn from_bytes(bytes: &[u8]) -> Option<Self>

source§

impl Rtype

source

pub fn scan<S: Scanner>(scanner: &mut S) -> Result<Self, S::Error>

Trait Implementations§

source§

impl Clone for Rtype

source§

fn clone(&self) -> Rtype

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Rtype

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Rtype

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> From<&'a Rtype> for u16

source§

fn from(value: &'a Rtype) -> Self

Converts to this type from the input type.
source§

impl From<Rtype> for u16

source§

fn from(value: Rtype) -> Self

Converts to this type from the input type.
source§

impl From<u16> for Rtype

source§

fn from(value: u16) -> Self

Converts to this type from the input type.
source§

impl FromStr for Rtype

§

type Err = FromStrError

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for Rtype

source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for Rtype

source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<Rtype> for Rtype

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Rtype> for u16

source§

fn eq(&self, other: &Rtype) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<u16> for Rtype

source§

fn eq(&self, other: &u16) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<Rtype> for Rtype

source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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 · source§

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
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<Rtype> for u16

source§

fn partial_cmp(&self, other: &Rtype) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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 · source§

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
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl PartialOrd<u16> for Rtype

source§

fn partial_cmp(&self, other: &u16) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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 · source§

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
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Copy for Rtype

source§

impl Eq for Rtype

Auto Trait Implementations§

§

impl RefUnwindSafe for Rtype

§

impl Send for Rtype

§

impl Sync for Rtype

§

impl Unpin for Rtype

§

impl UnwindSafe for Rtype

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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>

Performs the conversion.
source§

fn octets_into(self) -> Targetwhere Self::Error: Into<Infallible>,

Performs an infallible conversion.
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

source§

fn vzip(self) -> V