Enum trust_dns::rr::rdata::opt::EdnsCode
[−]
[src]
pub enum EdnsCode { Zero, LLQ, UL, NSID, DAU, DHU, N3U, Subnet, Expire, Cookie, Keepalive, Padding, Chain, Unknown(u16), }
Variants
Zero
LLQ
UL
NSID
DAU
DHU
N3U
Subnet
Expire
Cookie
Keepalive
Padding
Chain
Unknown(u16)
Unknown, used to deal with unknown or unsupported codes
Trait Implementations
impl Hash for EdnsCode
[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 Debug for EdnsCode
[src]
impl Copy for EdnsCode
[src]
impl Clone for EdnsCode
[src]
fn clone(&self) -> EdnsCode
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 PartialEq for EdnsCode
[src]
fn eq(&self, __arg_0: &EdnsCode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &EdnsCode) -> bool
This method tests for !=
.
impl Eq for EdnsCode
[src]
impl From<u16> for EdnsCode
[src]
impl<'a> From<&'a EdnsOption> for EdnsCode
[src]
fn from(value: &'a EdnsOption) -> EdnsCode
Performs the conversion.