[−]Enum chrootable_https::RecordType
The type of the resource record.
This specifies the type of data in the RData field of the Resource Record
Variants
ARFC 1035[1] IPv4 Address record
AAAARFC 3596[2] IPv6 address record
ANAMEANAME draft-ietf-dnsop-aname
ANYRFC 1035[1] All cached records, aka ANY
AXFRRFC 1035[1] Authoritative Zone Transfer
CAARFC 6844 Certification Authority Authorization
CNAMERFC 1035[1] Canonical name record
IXFRRFC 1996 Incremental Zone Transfer
MXRFC 1035[1] Mail exchange record
NAPTRRFC 3403 Naming Authority Pointer
NSRFC 1035[1] Name server record
NULLRFC 1035[1] Null server record, for testing
OPENPGPKEYRFC 7929 OpenPGP public key
OPTRFC 6891 Option
PTRRFC 1035[1] Pointer record
SOARFC 1035[1] and RFC 2308[9] Start of [a zone of] authority record
SRVRFC 2782 Service locator
SSHFPRFC 4255 SSH Public Key Fingerprint
TLSARFC 6698 TLSA certificate association
TXTRFC 1035[1] Text record
DNSSEC(DNSSECRecordType)A DNSSEC- or SIG(0)- specific record type.
These types are in DNSSECRecordType to make them easy to disable when
crypto functionality isn't needed.
Unknown(u16)Unknown Record type, or unsupported
ZEROThis corresponds to a record type of 0, unspecified
Methods
impl RecordType
pub fn is_any(self) -> bool
Returns true if this is an ANY
pub fn is_cname(self) -> bool
Returns true if this is a CNAME
pub fn is_srv(self) -> bool
Returns true if this is an SRV
pub fn is_ip_addr(self) -> bool
Returns true if this is an A or an AAAA record
Trait Implementations
impl Hash for RecordType
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl From<u16> for RecordType
fn from(value: u16) -> RecordType
Convert from u16 to RecordType
use trust_dns_proto::rr::record_type::RecordType; let var = RecordType::from(1); assert_eq!(RecordType::A, var);
impl PartialOrd<RecordType> for RecordType
fn partial_cmp(&self, other: &RecordType) -> Option<Ordering>
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
This method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Eq for RecordType
impl Clone for RecordType
fn clone(&self) -> RecordType
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq<RecordType> for RecordType
fn eq(&self, other: &RecordType) -> bool
fn ne(&self, other: &RecordType) -> bool
impl FromStr for RecordType
type Err = ProtoError
The associated error which can be returned from parsing.
fn from_str(str: &str) -> Result<RecordType, ProtoError>
Convert &str to RecordType
use std::str::FromStr; use trust_dns_proto::rr::record_type::RecordType; let var: RecordType = RecordType::from_str("A").unwrap(); assert_eq!(RecordType::A, var);
impl Debug for RecordType
impl Display for RecordType
impl Ord for RecordType
fn cmp(&self, other: &RecordType) -> Ordering
fn max(self, other: Self) -> Self1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self[src]
clamp)Restrict a value to a certain interval. Read more
impl Copy for RecordType
impl<'r> BinDecodable<'r> for RecordType
fn read(decoder: &mut BinDecoder) -> Result<RecordType, ProtoError>
fn from_bytes(bytes: &'r [u8]) -> Result<Self, ProtoError>
Returns the object in binary form
impl BinEncodable for RecordType
Auto Trait Implementations
impl Send for RecordType
impl Sync for RecordType
Blanket Implementations
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, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T> From<T> for T[src]
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<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,