Enum resolve::record::RecordType
[−]
[src]
pub enum RecordType { A, AAAA, CName, Mx, Ns, Ptr, Soa, Srv, Txt, Other(u16), }
Represents the type of data in a message.
Variants
A
An IPv4 host address
AAAA
An IPv6 host address
CName
Canonical name for an alias
Mx
Mail exchange
Ns
Authoritative name server
Ptr
Domain name pointer
Soa
Start of authority
Srv
Service record
Txt
Text string
Other(u16)
Unrecognized record type
Methods
impl RecordType
[src]
fn from_u16(u: u16) -> RecordType
[src]
Converts a u16
to a RecordType
.
fn to_u16(&self) -> u16
[src]
Converts a RecordType
to a u16
.
Trait Implementations
impl Copy for RecordType
[src]
impl Clone for RecordType
[src]
fn clone(&self) -> RecordType
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for RecordType
[src]
impl Eq for RecordType
[src]
impl PartialEq for RecordType
[src]
fn eq(&self, __arg_0: &RecordType) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RecordType) -> bool
[src]
This method tests for !=
.