Type

Struct Type 

Source
pub struct Type(/* private fields */);

Implementations§

Source§

impl Type

Source

pub const A: Self

A (1)

Source

pub const NS: Self

NS (2)

Source

pub const MD: Self

MD (3)

Source

pub const MF: Self

MF (4)

Source

pub const CNAME: Self

CNAME (5)

Source

pub const SOA: Self

SOA (6)

Source

pub const MB: Self

MB (7)

Source

pub const MG: Self

MG (8)

Source

pub const MR: Self

MR (9)

Source

pub const NULL: Self

NULL (10)

Source

pub const WKS: Self

WKS (11)

Source

pub const PTR: Self

PTR (12)

Source

pub const HINFO: Self

HINFO (13)

Source

pub const MINFO: Self

MINFO (14)

Source

pub const MX: Self

MX (15)

Source

pub const TXT: Self

TXT (16)

Source

pub const RP: Self

RP (17)

Source

pub const AFSDB: Self

AFSDB (18)

Source

pub const X25: Self

X25 (19)

Source

pub const ISDN: Self

ISDN (20)

Source

pub const RT: Self

RT (21)

Source

pub const NSAP: Self

NSAP (22)

Source

pub const NSAP_PTR: Self

NSAP-PTR (23)

Source

pub const SIG: Self

SIG (24)

Source

pub const KEY: Self

KEY (25)

Source

pub const PX: Self

PX (26)

Source

pub const GPOS: Self

GPOS (27)

Source

pub const AAAA: Self

AAAA (28)

Source

pub const LOC: Self

LOC (29)

Source

pub const NXT: Self

NXT (30)

Source

pub const EID: Self

EID (31)

Source

pub const NIMLOC: Self

NIMLOC (32)

Source

pub const SRV: Self

SRV (33)

Source

pub const ATMA: Self

ATMA (34)

Source

pub const NAPTR: Self

NAPTR (35)

Source

pub const KX: Self

KX (36)

Source

pub const CERT: Self

CERT (37)

Source

pub const A6: Self

A6 (38)

Source

pub const DNAME: Self

DNAME (39)

Source

pub const SINK: Self

SINK (40)

Source

pub const OPT: Self

OPT (41)

Source

pub const APL: Self

APL (42)

Source

pub const DS: Self

DS (43)

Source

pub const SSHFP: Self

SSHFP (44)

Source

pub const IPSECKEY: Self

IPSECKEY (45)

Source

pub const RRSIG: Self

RRSIG (46)

Source

pub const NSEC: Self

NSEC (47)

Source

pub const DNSKEY: Self

DNSKEY (48)

Source

pub const DHCID: Self

DHCID (49)

Source

pub const NSEC3: Self

NSEC3 (50)

Source

pub const NSEC3PARAM: Self

NSEC3PARAM (51)

Source

pub const TLSA: Self

TLSA (52)

Source

pub const SMIMEA: Self

SMIMEA (53)

Source

pub const HIP: Self

HIP (55)

Source

pub const NINFO: Self

NINFO (56)

Source

pub const RKEY: Self

RKEY (57)

TALINK (58)

Source

pub const CDS: Self

CDS (59)

Source

pub const CDNSKEY: Self

CDNSKEY (60)

Source

pub const OPENPGPKEY: Self

OPENPGPKEY (61)

Source

pub const CSYNC: Self

CSYNC (62)

Source

pub const ZONEMD: Self

ZONEMD (63)

Source

pub const SVCB: Self

SVCB (64)

Source

pub const HTTPS: Self

HTTPS (65)

Source

pub const DSYNC: Self

DSYNC (66)

Source

pub const HHIT: Self

HHIT (67)

Source

pub const BRID: Self

BRID (68)

Source

pub const SPF: Self

SPF (99)

Source

pub const UINFO: Self

UINFO (100)

Source

pub const UID: Self

UID (101)

Source

pub const GID: Self

GID (102)

Source

pub const UNSPEC: Self

UNSPEC (103)

Source

pub const NID: Self

NID (104)

Source

pub const L32: Self

L32 (105)

Source

pub const L64: Self

L64 (106)

Source

pub const LP: Self

LP (107)

Source

pub const EUI48: Self

EUI48 (108)

Source

pub const EUI64: Self

EUI64 (109)

Source

pub const NXNAME: Self

NXNAME (128)

Source

pub const TKEY: Self

TKEY (249)

Source

pub const TSIG: Self

TSIG (250)

Source

pub const IXFR: Self

IXFR (251)

Source

pub const AXFR: Self

AXFR (252)

Source

pub const MAILB: Self

MAILB (253)

Source

pub const MAILA: Self

MAILA (254)

Source

pub const __: Self

* (255)

Source

pub const ALL: Self

ALL (255)

Source

pub const ANY: Self

ANY (255)

Source

pub const URI: Self

URI (256)

Source

pub const CAA: Self

CAA (257)

Source

pub const AVC: Self

AVC (258)

Source

pub const DOA: Self

DOA (259)

Source

pub const AMTRELAY: Self

AMTRELAY (260)

Source

pub const RESINFO: Self

RESINFO (261)

Source

pub const WALLET: Self

WALLET (262)

Source

pub const CLA: Self

CLA (263)

Source

pub const IPN: Self

IPN (264)

Source

pub const TA: Self

TA (32768)

Source

pub const DLV: Self

DLV (32769)

Source§

impl Type

Source

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

Source

pub const fn value(&self) -> u16

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 Format for Type

Source§

fn fmt(&self, w: &mut Wrapper<'_, '_>) -> Result

Source§

impl FromStr for Type

Source§

type Err = TypeFromStrError

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

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

Parses a string s to return a value of this type. 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, 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.