Enum trust_dns::rr::record_type::RecordType
[−]
[src]
pub enum RecordType { A, AAAA, ANY, AXFR, CNAME, DNSKEY, DS, IXFR, KEY, MX, NS, NULL, NSEC, NSEC3, NSEC3PARAM, OPT, PTR, RRSIG, SIG, SOA, SRV, TXT, }
The type of the resource record.
This specifies the type of data in the RData field of the Resource Record
Variants
A
RFC 1035[1] IPv4 Address record
AAAA
RFC 3596[2] IPv6 address record
ANY
RFC 1035[1] All cached records, aka ANY
AXFR
RFC 1035[1] Authoritative Zone Transfer
CNAME
RFC 1035[1] Canonical name record
DNSKEY
RFC 4034 DNS Key record: RSASHA256 and RSASHA512, RFC5702
DS
RFC 4034 Delegation signer: RSASHA256 and RSASHA512, RFC5702
IXFR
RFC 1996 Incremental Zone Transfer
KEY
RFC 2535[3] and RFC 2930[4] Key record
MX
RFC 1035[1] Mail exchange record
NS
RFC 1035[1] Name server record
NULL
RFC 1035[1] Null server record, for testing
NSEC
RFC 4034 Next-Secure record
NSEC3
RFC 5155 NSEC record version 3
NSEC3PARAM
RFC 5155 NSEC3 parameters
OPT
RFC 6891 Option
PTR
RFC 1035[1] Pointer record
RRSIG
RFC 4034 DNSSEC signature: RSASHA256 and RSASHA512, RFC5702
SIG
RFC 2535 (2931) Signature, to support 2137 Update
SOA
RFC 1035[1] and RFC 2308[9] Start of [a zone of] authority record
SRV
RFC 2782 Service locator
TXT
RFC 1035[1] Text record
Methods
impl RecordType
[src]
fn from_str(str: &str) -> DecodeResult<Self>
Convert from RecordType to &str
use trust_dns::rr::record_type::RecordType; let var: RecordType = RecordType::from_str("A").unwrap(); assert_eq!(RecordType::A, var);
fn from_u16(value: u16) -> DecodeResult<Self>
Convert from RecordType to &str
use trust_dns::rr::record_type::RecordType; let var = RecordType::from_u16(1).unwrap(); assert_eq!(RecordType::A, var);
Trait Implementations
impl Debug for RecordType
[src]
impl PartialEq for RecordType
[src]
fn eq(&self, __arg_0: &RecordType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for RecordType
[src]
impl Hash for RecordType
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Copy for RecordType
[src]
impl Clone for RecordType
[src]
fn clone(&self) -> RecordType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl BinSerializable<RecordType> for RecordType
[src]
fn read(decoder: &mut BinDecoder) -> DecodeResult<Self>
Read the type from the stream
fn emit(&self, encoder: &mut BinEncoder) -> EncodeResult
Write the type to the stream
impl PartialOrd<RecordType> for RecordType
[src]
fn partial_cmp(&self, other: &RecordType) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for RecordType
[src]
fn cmp(&self, other: &Self) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
ord_max_min
)Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
ord_max_min
)Compares and returns the minimum of two values. Read more