[−]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
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
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
Implementations
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<'r> BinDecodable<'r> for RecordType
fn read(decoder: &mut BinDecoder<'_>) -> Result<RecordType, ProtoError>
fn from_bytes(bytes: &'r [u8]) -> Result<Self, ProtoError>
impl BinEncodable for RecordType
fn emit(&self, encoder: &mut BinEncoder<'_>) -> Result<(), ProtoError>
fn to_bytes(&self) -> Result<Vec<u8>, ProtoError>
impl Clone for RecordType
fn clone(&self) -> RecordType
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for RecordType
impl Debug for RecordType
impl Display for RecordType
impl Eq for RecordType
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 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 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,
impl Ord for RecordType
fn cmp(&self, other: &RecordType) -> Ordering
#[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 PartialEq<RecordType> for RecordType
fn eq(&self, other: &RecordType) -> bool
fn ne(&self, other: &RecordType) -> bool
impl PartialOrd<RecordType> for RecordType
fn partial_cmp(&self, other: &RecordType) -> Option<Ordering>
#[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
impl StructuralPartialEq for RecordType
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<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[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>,