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, }
Variants
A
AAAA
ANY
AXFR
CNAME
DNSKEY
DS
IXFR
KEY
MX
NS
NULL
NSEC
NSEC3
NSEC3PARAM
OPT
PTR
RRSIG
SIG
SOA
SRV
TXT
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 state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
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>
fn emit(&self, encoder: &mut BinEncoder) -> EncodeResult
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