Enum resolve::record::Class
[−]
[src]
pub enum Class { Internet, Any, Other(u16), }
Represents the class of data in a message.
Variants
Internet
Internet (IN
)
Any
Any (*
)
Other(u16)
An unrecognized class
Methods
impl Class
[src]
fn from_u16(u: u16) -> Class
[src]
Converts a u16
to a Class
.
fn to_u16(&self) -> u16
[src]
Converts a Class
to a u16
.
Trait Implementations
impl Copy for Class
[src]
impl Clone for Class
[src]
fn clone(&self) -> Class
[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