domain::base::iana::rtype

Struct Rtype

source
pub struct Rtype(/* private fields */);
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.

Implementations§

source§

impl Rtype

source

pub const A: Rtype = _

A host address.

source

pub const NS: Rtype = _

An authoritative name server.

source

pub const MD: Rtype = _

A mail destination.

(Obsolete – use MX)

source

pub const MF: Rtype = _

A mail forwarder.

(Obsolete – use MX)

source

pub const CNAME: Rtype = _

The canonical name for an alias

source

pub const SOA: Rtype = _

Marks the start of a zone of authority.

source

pub const MB: Rtype = _

A mailbox domain name.

(Experimental.)

source

pub const MG: Rtype = _

A mail group member

(Experimental.)

source

pub const MR: Rtype = _

A mail rename domain name.

(Experimental.)

source

pub const NULL: Rtype = _

A null resource record.

(Experimental.)

source

pub const WKS: Rtype = _

A well known service description.

source

pub const PTR: Rtype = _

A domain name pointer.

source

pub const HINFO: Rtype = _

Host information.

source

pub const MINFO: Rtype = _

Mailbox or mail list information.

source

pub const MX: Rtype = _

Mail exchange.

source

pub const TXT: Rtype = _

Text strings.

source

pub const RP: Rtype = _

For Responsible Person.

See RFC 1183

source

pub const AFSDB: Rtype = _

For AFS Data Base location.

See RFC 1183 and RFC 5864.

source

pub const X25: Rtype = _

For X.25 PSDN address.

See RFC 1183.

source

pub const ISDN: Rtype = _

For ISDN address.

See RFC 1183.

source

pub const RT: Rtype = _

For Route Through.

See RFC 1183

source

pub const NSAP: Rtype = _

For SNAP address, NSAP style A record.

See RFC 1706.

source

pub const NSAPPTR: Rtype = _

For domain name pointer, NSAP style.

See RFC 1348, RFC 1637, RFC 1706.

source

pub const SIG: Rtype = _

For security signature.

source

pub const KEY: Rtype = _

For security key.

source

pub const PX: Rtype = _

X.400 mail mapping information.

See RFC 2163.

source

pub const GPOS: Rtype = _

Geographical position.

See RFC 1712

source

pub const AAAA: Rtype = _

IPv6 address.

See RFC 3596.

source

pub const LOC: Rtype = _

Location information.

See RFC 1876.

source

pub const NXT: Rtype = _

Next domain.

(Obsolete.)

See RFC 3755 and RFC 2535.

source

pub const EID: Rtype = _

Endpoint identifier.

source

pub const NIMLOC: Rtype = _

Nimrod locator.

source

pub const SRV: Rtype = _

Server selection.

See RFC 2782.

source

pub const ATMA: Rtype = _

ATM address.

source

pub const NAPTR: Rtype = _

Naming authority pointer.

See RFC 2915, RFC 2168, and RFC 3403.

source

pub const KX: Rtype = _

Key exchanger.

See RFC 2230.

source

pub const CERT: Rtype = _

CERT

See RFC 4398.

source

pub const A6: Rtype = _

A6.

(Obsolete – use AAAA.)

See RFC 3226, RFC 2874, and RFC 6563.

source

pub const DNAME: Rtype = _

DNAME.

See RFC 6672.

source

pub const SINK: Rtype = _

SINK.

source

pub const OPT: Rtype = _

OPT.

See RFC 6891 and RFC 3225.

source

pub const APL: Rtype = _

APL.

See RFC 3123.

source

pub const DS: Rtype = _

Delegation signer.

See RFC 4034 and RFC 3658.

source

pub const SSHFP: Rtype = _

SSH key fingerprint.

See RFC 4255.

source

pub const IPSECKEY: Rtype = _

IPSECKEY

See RFC 4255.

source

pub const RRSIG: Rtype = _

RRSIG.

See RFC 4034 and RFC 3755.

source

pub const NSEC: Rtype = _

NSEC.

See RFC 4034 and RFC 3755.

source

pub const DNSKEY: Rtype = _

DNSKEY.

See RFC 4034 and RFC 3755.

source

pub const DHCID: Rtype = _

DHCID.

See RFC 4701.

source

pub const NSEC3: Rtype = _

NSEC3

See RFC 5155.

source

pub const NSEC3PARAM: Rtype = _

NSEC3PARAM.

See RFC 5155.

source

pub const TLSA: Rtype = _

TLSA.

See RFC 6698.

source

pub const SMIMEA: Rtype = _

S/MIME cert association.

See draft-ietf-dane-smime.

source

pub const HIP: Rtype = _

Host Identity Protocol.

See RFC 5205.

source

pub const NINFO: Rtype = _

NINFO.

source

pub const RKEY: Rtype = _

RKEY.

Trust Anchor Link

source

pub const CDS: Rtype = _

Child DS.

See RFC 7344.

source

pub const CDNSKEY: Rtype = _

DNSKEY(s) the child wants reflected in DS.

See RFC 7344.

source

pub const OPENPGPKEY: Rtype = _

OpenPGP key.

See draft-ietf-dane-openpgpkey.

source

pub const CSYNC: Rtype = _

Child-to-parent synchronization.

See RFC 7477.

source

pub const ZONEMD: Rtype = _

Message digest for DNS zone.

See draft-wessels-dns-zone-digest.

source

pub const SVCB: Rtype = _

General Purpose Service Endpoints.

See draft-ietf-dnsop-svcb-httpssvc

source

pub const HTTPS: Rtype = _

HTTPS Specific Service Endpoints.

See draft-ietf-dnsop-svcb-httpssvc

source

pub const SPF: Rtype = _

SPF.

RFC 7208.

source

pub const UINFO: Rtype = _

UINFO.

IANA-Reserved.

source

pub const UID: Rtype = _

UID.

IANA-Reserved.

source

pub const GID: Rtype = _

GID.

IANA-Reserved.

source

pub const UNSPEC: Rtype = _

UNSPEC.

IANA-Reserved.

source

pub const NID: Rtype = _

NID.

See RFC 6742.

source

pub const L32: Rtype = _

L32.

See RFC 6742.

source

pub const L64: Rtype = _

L64.

See RFC 6742.

source

pub const LP: Rtype = _

LP.

See RFC 6742.

source

pub const EUI48: Rtype = _

An EUI-48 address.

See RFC 7043.

source

pub const EUI64: Rtype = _

An EUI-64 address.

See RFC 7043.

source

pub const NXNAME: Rtype = _

NXNAME.

IANA-Reserved.

source

pub const TKEY: Rtype = _

Transaction key.

See RFC 2930.

source

pub const TSIG: Rtype = _

Transaction signature.

See RFC 2845.

source

pub const IXFR: Rtype = _

Incremental transfer.

See RFC 1995.

source

pub const AXFR: Rtype = _

Transfer of entire zone.

See RFC 1035 and RFC 5936.

source

pub const MAILB: Rtype = _

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

source

pub const MAILA: Rtype = _

Mail agent RRS.

(Obsolete – see MX.)

source

pub const ANY: Rtype = _

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

See RFC 1035 and RFC 6895.

source

pub const URI: Rtype = _

URI.

See RFC 7553.

source

pub const CAA: Rtype = _

Certification Authority Restriction.

See RFC 6844.

source

pub const AVC: Rtype = _

Application visibility and control.

source

pub const DOA: Rtype = _

Digital Object Architecture

See draft-durand-doa-over-dns.

source

pub const TA: Rtype = _

DNSSEC trust authorities.

source

pub const DLV: Rtype = _

DNSSEC lookaside validation.

See RFC 4431

source§

impl Rtype

source

pub const COMPOSE_LEN: u16 = 2u16

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 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>

source§

impl Rtype

source

pub fn is_glue(&self) -> bool

Returns true if this record type is a type used for Glue records.

See the definition of “glue” in RFC 9499 Section 7 “Zones”.

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

source§

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: &Rtype) -> Ordering

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

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

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

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

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

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

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

impl PartialEq for Rtype

source§

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

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

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

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

impl PartialOrd for Rtype

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

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

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

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

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

source§

impl StructuralPartialEq for Rtype

Auto Trait Implementations§

§

impl Freeze for Rtype

§

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 T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where 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 Source
where Target: OctetsFrom<Source>,

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) -> Target
where Self::Error: Into<Infallible>,

Performs an infallible conversion.
source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
source§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

source§

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 T
where 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 T
where U: Into<T>,

source§

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 T
where U: TryFrom<T>,

source§

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 T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more