[−][src]Enum domain::base::iana::rtype::Rtype
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 host address.
An authoritative name server.
A mail destination.
(Obsolete – use MX)
A mail forwarder.
(Obsolete – use MX)
The canonical name for an alias
Marks the start of a zone of authority.
A mailbox domain name.
(Experimental.)
A mail group member
(Experimental.)
A mail rename domain name.
(Experimental.)
A null resource record.
(Experimental.)
A well known service description.
A domain name pointer.
Host information.
Mailbox or mail list information.
Mail exchange.
Text strings.
For Responsible Person.
See RFC 1183
For AFS Data Base location.
See RFC 1183 and RFC 5864.
For X.25 PSDN address.
See RFC 1183.
For ISDN address.
See RFC 1183.
For Route Through.
See RFC 1183
For SNAP address, NSAP style A record.
See RFC 1706.
For domain name pointer, NSAP style.
See RFC 1348, RFC 1637, RFC 1706.
For security signature.
For security key.
X.400 mail mapping information.
See RFC 2163.
Geographical position.
See RFC 1712
IPv6 address.
See RFC 3596.
Location information.
See RFC 1876.
Next domain.
(Obsolete.)
See RFC 3755 and RFC 2535.
Endpoint identifier.
Nimrod locator.
Server selection.
See RFC 2782.
ATM address.
Naming authority pointer.
See RFC 2915, RFC 2168, and RFC 3403.
Key exchanger.
See RFC 2230.
CERT
See RFC 4398.
A6.
(Obsolete – use AAAA.)
See RFC 3226, RFC 2874, and RFC 6563.
DNAME.
See RFC 6672.
SINK.
OPT.
See RFC 6891 and RFC 3225.
APL.
See RFC 3123.
Delegation signer.
See RFC 4034 and RFC 3658.
SSH key fingerprint.
See RFC 4255.
IPSECKEY
See RFC 4255.
RRSIG.
See RFC 4034 and RFC 3755.
NSEC.
See RFC 4034 and RFC 3755.
DNSKEY.
See RFC 4034 and RFC 3755.
DHCID.
See RFC 4701.
NSEC3
See RFC 5155.
NSEC3PARAM.
See RFC 5155.
TLSA.
See RFC 6698.
S/MIME cert association.
See draft-ietf-dane-smime.
Host Identity Protocol.
See RFC 5205.
NINFO.
RKEY.
Trust Anchor Link
Child DS.
See RFC 7344.
DNSKEY(s) the child wants reflected in DS.
See RFC 7344.
OpenPGP key.
See draft-ietf-dane-openpgpkey.
Child-to-parent synchronization.
See RFC 7477.
Message digest for DNS zone.
See draft-wessels-dns-zone-digest.
SPF.
RFC 7208.
UINFO.
IANA-Reserved.
UID.
IANA-Reserved.
GID.
IANA-Reserved.
UNSPEC.
IANA-Reserved.
NID.
See RFC 6742.
L32.
See RFC 6742.
L64.
See RFC 6742.
LP.
See RFC 6742.
An EUI-48 address.
See RFC 7043.
An EUI-64 address.
See RFC 7043.
Transaction key.
See RFC 2930.
Transaction signature.
See RFC 2845.
Incremental transfer.
See RFC 1995.
Transfer of entire zone.
See RFC 1035 and RFC 5936.
Mailbox-related RRs (MB, MG, or MR).
Mail agent RRS.
(Obsolete – see MX.)
A request for all records the server/cache has available.
See RFC 1035 and RFC 6895.
URI.
See RFC 7553.
Certification Authority Restriction.
See RFC 6844.
Application visibility and control.
Digital Object Architecture
See draft-durand-doa-over-dns.
DNSSEC trust authorities.
DNSSEC lookaside validation.
See RFC 4431
Int(u16)
A raw value given through its integer.
Implementations
impl Rtype
[src]
pub fn from_int(value: u16) -> Self
[src]
Returns a value from its raw integer value.
pub fn to_int(self) -> u16
[src]
Returns the raw integer value for a value.
pub fn from_mnemonic(m: &[u8]) -> Option<Self>
[src]
Returns a value from a well-defined mnemonic.
pub fn to_mnemonic(self) -> Option<&'static [u8]>
[src]
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.
impl Rtype
[src]
Trait Implementations
impl Clone for Rtype
[src]
impl Compose for Rtype
[src]
fn compose<T: OctetsBuilder>(&self, target: &mut T) -> Result<(), ShortBuf>
[src]
fn compose_canonical<T: OctetsBuilder>(
&self,
target: &mut T
) -> Result<(), ShortBuf>
[src]
&self,
target: &mut T
) -> Result<(), ShortBuf>
impl Copy for Rtype
[src]
impl Debug for Rtype
[src]
impl Display for Rtype
[src]
impl Eq for Rtype
[src]
impl<'a> From<&'a Rtype> for u16
[src]
impl From<Rtype> for u16
[src]
impl From<u16> for Rtype
[src]
impl FromStr for Rtype
[src]
type Err = FromStrError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for Rtype
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Rtype
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<Ref: AsRef<[u8]>> Parse<Ref> for Rtype
[src]
fn parse(parser: &mut Parser<Ref>) -> Result<Self, ParseError>
[src]
fn skip(parser: &mut Parser<Ref>) -> Result<(), ParseError>
[src]
impl PartialEq<Rtype> for Rtype
[src]
impl PartialEq<Rtype> for u16
[src]
impl PartialEq<u16> for Rtype
[src]
impl PartialOrd<Rtype> for Rtype
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<Rtype> for u16
[src]
fn partial_cmp(&self, other: &Rtype) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<u16> for Rtype
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,