[−][src]Enum trust_dns_client::rr::record_type::RecordType
The type of the resource record.
This specifies the type of data in the RData field of the Resource Record
Variants
RFC 1035[1] IPv4 Address record
RFC 3596[2] IPv6 address record
ANAME draft-ietf-dnsop-aname
RFC 1035[1] All cached records, aka ANY
RFC 1035[1] Authoritative Zone Transfer
RFC 6844 Certification Authority Authorization
RFC 1035[1] Canonical name record
RFC 1996 Incremental Zone Transfer
RFC 1035[1] Mail exchange record
RFC 3403 Naming Authority Pointer
RFC 1035[1] Name server record
RFC 1035[1] Null server record, for testing
RFC 7929 OpenPGP public key
RFC 6891 Option
RFC 1035[1] Pointer record
RFC 1035[1] and RFC 2308[9] Start of [a zone of] authority record
RFC 2782 Service locator
RFC 4255 SSH Public Key Fingerprint
RFC 6698 TLSA certificate association
RFC 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
This corresponds to a record type of 0, unspecified
Methods
impl RecordType
[src]
pub fn is_any(self) -> bool
[src]
Returns true if this is an ANY
pub fn is_cname(self) -> bool
[src]
Returns true if this is a CNAME
pub fn is_srv(self) -> bool
[src]
Returns true if this is an SRV
pub fn is_ip_addr(self) -> bool
[src]
Returns true if this is an A or an AAAA record
Trait Implementations
impl<'r> BinDecodable<'r> for RecordType
[src]
fn read(decoder: &mut BinDecoder) -> Result<RecordType, ProtoError>
[src]
fn from_bytes(bytes: &'r [u8]) -> Result<Self, ProtoError>
[src]
impl BinEncodable for RecordType
[src]
fn emit(&self, encoder: &mut BinEncoder) -> Result<(), ProtoError>
[src]
fn to_bytes(&self) -> Result<Vec<u8>, ProtoError>
[src]
impl Clone for RecordType
[src]
fn clone(&self) -> RecordType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for RecordType
[src]
impl Debug for RecordType
[src]
impl Display for RecordType
[src]
impl Eq for RecordType
[src]
impl From<u16> for RecordType
[src]
fn from(value: u16) -> RecordType
[src]
Convert from u16
to RecordType
use trust_dns_proto::rr::record_type::RecordType; let var = RecordType::from(1); assert_eq!(RecordType::A, var);
impl FromStr for RecordType
[src]
type Err = ProtoError
The associated error which can be returned from parsing.
fn from_str(str: &str) -> Result<RecordType, ProtoError>
[src]
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 Hash for RecordType
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for RecordType
[src]
fn cmp(&self, other: &RecordType) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<RecordType> for RecordType
[src]
fn eq(&self, other: &RecordType) -> bool
[src]
fn ne(&self, other: &RecordType) -> bool
[src]
impl PartialOrd<RecordType> for RecordType
[src]
fn partial_cmp(&self, other: &RecordType) -> 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 StructuralEq for RecordType
[src]
impl StructuralPartialEq for RecordType
[src]
Auto Trait Implementations
impl RefUnwindSafe for RecordType
impl Send for RecordType
impl Sync for RecordType
impl Unpin for RecordType
impl UnwindSafe for RecordType
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>,