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
ZeroLLQULNSIDDAUDHUN3USubnetExpireCookieKeepalivePaddingChainUnknown(u16)Unknown, used to deal with unknown or unsupported codes
Trait Implementations
impl Hash for EdnsCode[src]
impl Hash for EdnsCodefn 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 EdnsCodefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Copy for EdnsCode[src]
impl Copy for EdnsCodeimpl Clone for EdnsCode[src]
impl Clone for EdnsCodefn clone(&self) -> EdnsCode[src]
fn clone(&self) -> EdnsCodeReturns 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 EdnsCodefn eq(&self, other: &EdnsCode) -> bool[src]
fn eq(&self, other: &EdnsCode) -> boolThis 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) -> boolThis method tests for !=.
impl Eq for EdnsCode[src]
impl Eq for EdnsCodeimpl From<u16> for EdnsCode[src]
impl From<u16> for EdnsCodeimpl From<EdnsCode> for u16[src]
impl From<EdnsCode> for u16impl<'a> From<&'a EdnsOption> for EdnsCode[src]
impl<'a> From<&'a EdnsOption> for EdnsCodefn from(value: &'a EdnsOption) -> EdnsCode[src]
fn from(value: &'a EdnsOption) -> EdnsCodePerforms the conversion.