Struct async_dnssd::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 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 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 + PartialOrd,

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