Enum resolv::Class
[−]
[src]
pub enum Class { IN, CSNET, CHAOS, HS, NONE, ANY, }
DNS Class.
Variants
IN
Internet Class. By far the most common.
CSNET
CSNET class (obsoleted)
CHAOS
CHAOS class (https://en.wikipedia.org/wiki/Chaosnet)
HS
NONE
None. Used for "name is not in use" requests.
ANY
Any. Used for "name is in use" requests.
Methods
impl Class
[src]
fn from_rr_class(rr_class: u16) -> Result<Class, Error>
Trait Implementations
impl PartialEq for Class
[src]
fn eq(&self, __arg_0: &Class) -> 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 Copy for Class
[src]
impl Clone for Class
[src]
fn clone(&self) -> Class
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