Struct Type

Source
pub struct Type(pub u16);
Expand description

DNS (RR)TYPE

Originally QTYPE was a superset of TYPE; RFC 6895 now defines:

There are three subcategories of RRTYPE numbers: data TYPEs, QTYPEs, and Meta-TYPEs.

§ANY

QTYPE 255 (“*”) doesn’t seem to have an official mnemonic; ANY is used in most tools though.

The ANY mnemonic conflicts with the QCLASS ANY though…

Tuple Fields§

§0: u16

Implementations§

Source§

impl Type

Source

pub const A: Self

a host address

Source

pub const NS: Self

an authoritative name server

Source

pub const MD: Self

a mail destination (OBSOLETE - use MX)

Source

pub const MF: Self

a mail forwarder (OBSOLETE - use MX)

Source

pub const CNAME: Self

the canonical name for an alias

Source

pub const SOA: Self

marks the start of a zone of authority

Source

pub const MB: Self

a mailbox domain name (EXPERIMENTAL)

Source

pub const MG: Self

a mail group member (EXPERIMENTAL)

Source

pub const MR: Self

a mail rename domain name (EXPERIMENTAL)

Source

pub const NULL: Self

a null RR (EXPERIMENTAL)

Source

pub const WKS: Self

a well known service description

Source

pub const PTR: Self

a domain name pointer

Source

pub const HINFO: Self

host information

Source

pub const MINFO: Self

mailbox or mail list information

Source

pub const MX: Self

mail exchange

Source

pub const TXT: Self

text strings

Source

pub const RP: Self

for Responsible Person

Source

pub const AFSDB: Self

for AFS Data Base location

Source

pub const X25: Self

for X.25 PSDN address

Source

pub const ISDN: Self

for ISDN address

Source

pub const RT: Self

for Route Through

Source

pub const NSAP: Self

for NSAP address, NSAP style A record

Source

pub const NSAP_PTR: Self

for domain name pointer, NSAP style

Source

pub const SIG: Self

for security signature

Source

pub const KEY: Self

for security key

Source

pub const PX: Self

X.400 mail mapping information

Source

pub const GPOS: Self

Geographical Position

Source

pub const AAAA: Self

IP6 Address

Source

pub const LOC: Self

Location Information

Source

pub const NXT: Self

Next Domain (OBSOLETE)

Source

pub const EID: Self

Endpoint Identifier

Source

pub const NIMLOC: Self

Nimrod Locator

Source

pub const SRV: Self

Server Selection

Source

pub const ATMA: Self

ATM Address

Source

pub const NAPTR: Self

Naming Authority Pointer

Source

pub const KX: Self

Key Exchanger

Source

pub const CERT: Self

CERT

Source

pub const A6: Self

A6 (OBSOLETE - use AAAA)

Source

pub const DNAME: Self

DNAME

Source

pub const SINK: Self

SINK

Source

pub const OPT: Self

OPT

Source

pub const APL: Self

APL

Source

pub const DS: Self

Delegation Signer

Source

pub const SSHFP: Self

SSH Key Fingerprint

Source

pub const IPSECKEY: Self

IPSECKEY

Source

pub const RRSIG: Self

RRSIG

Source

pub const NSEC: Self

NSEC

Source

pub const DNSKEY: Self

DNSKEY

Source

pub const DHCID: Self

DHCID

Source

pub const NSEC3: Self

NSEC3

Source

pub const NSEC3PARAM: Self

NSEC3PARAM

Source

pub const TLSA: Self

TLSA

Source

pub const SMIMEA: Self

S/MIME cert association

Source

pub const HIP: Self

Host Identity Protocol

Source

pub const NINFO: Self

NINFO

Source

pub const RKEY: Self

RKEY

Trust Anchor LINK

Source

pub const CDS: Self

Child DS

Source

pub const CDNSKEY: Self

DNSKEY(s) the Child wants reflected in DS

Source

pub const OPENPGPKEY: Self

OpenPGP Key

Source

pub const CSYNC: Self

Child-To-Parent Synchronization

Source

pub const SPF: Self

SPF

Source

pub const UINFO: Self

UINFO

Source

pub const UID: Self

UID

Source

pub const GID: Self

GID

Source

pub const UNSPEC: Self

UNSPEC

Source

pub const NID: Self

NID

Source

pub const L32: Self

L32

Source

pub const L64: Self

L64

Source

pub const LP: Self

LP

Source

pub const EUI48: Self

an EUI-48 address

Source

pub const EUI64: Self

an EUI-64 address

Source

pub const TKEY: Self

Transaction Key

Source

pub const TSIG: Self

Transaction Signature

Source

pub const IXFR: Self

incremental transfer

Source

pub const AXFR: Self

transfer of an entire zone

Source

pub const MAILB: Self

mailbox-related RRs (MB, MG or MR)

Source

pub const MAILA: Self

mail agent RRs (OBSOLETE - see MX)

Source

pub const ANY: Self

“*”, a request for all records the server/cache has available

Source

pub const URI: Self

URI

Source

pub const CAA: Self

Certification Authority Restriction

Source

pub const AVC: Self

Application Visibility and Control

Source

pub const DOA: Self

Digital Object Architecture

Source

pub const TA: Self

DNSSEC Trust Authorities

Source

pub const DLV: Self

DNSSEC Lookaside Validation

Trait Implementations§

Source§

impl Clone for Type

Source§

fn clone(&self) -> Type

Returns a duplicate 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 Type

Source§

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

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

impl Hash for Type

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 Type

Source§

fn cmp(&self, other: &Type) -> 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 Type

Source§

fn eq(&self, other: &Type) -> 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 Type

Source§

fn partial_cmp(&self, other: &Type) -> 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 Type

Source§

impl Eq for Type

Source§

impl StructuralPartialEq for Type

Auto Trait Implementations§

§

impl Freeze for Type

§

impl RefUnwindSafe for Type

§

impl Send for Type

§

impl Sync for Type

§

impl Unpin for Type

§

impl UnwindSafe for Type

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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 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<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, 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.