Enum trust_dns_proto::rr::rdata::opt::EdnsCode [−][src]
pub enum EdnsCode { Zero, LLQ, UL, NSID, DAU, DHU, N3U, Subnet, Expire, Cookie, Keepalive, Padding, Chain, Unknown(u16), }
The code of the EDNS data option
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]
impl Hash for EdnsCode
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for EdnsCode
[src]
impl Debug for EdnsCode
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for EdnsCode
[src]
impl Copy for EdnsCode
impl Clone for EdnsCode
[src]
impl Clone for EdnsCode
fn clone(&self) -> EdnsCode
[src]
fn clone(&self) -> EdnsCode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for EdnsCode
[src]
impl PartialEq for EdnsCode
fn eq(&self, other: &EdnsCode) -> bool
[src]
fn eq(&self, other: &EdnsCode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &EdnsCode) -> bool
[src]
fn ne(&self, other: &EdnsCode) -> bool
This method tests for !=
.
impl Eq for EdnsCode
[src]
impl Eq for EdnsCode
impl From<u16> for EdnsCode
[src]
impl From<u16> for EdnsCode
impl From<EdnsCode> for u16
[src]
impl From<EdnsCode> for u16
impl<'a> From<&'a EdnsOption> for EdnsCode
[src]
impl<'a> From<&'a EdnsOption> for EdnsCode
fn from(value: &'a EdnsOption) -> EdnsCode
[src]
fn from(value: &'a EdnsOption) -> EdnsCode
Performs the conversion.