#[non_exhaustive]pub enum EdnsOption {
DAU(SupportedAlgorithms),
DHU(SupportedAlgorithms),
N3U(SupportedAlgorithms),
Subnet(ClientSubnet),
Unknown(u16, Vec<u8>),
}
Expand description
options used to pass information about capabilities between client and server
note: Not all EdnsOptions are supported at this time.
https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-13
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DAU(SupportedAlgorithms)
Available on crate feature
dnssec
only.DHU(SupportedAlgorithms)
Available on crate feature
dnssec
only.N3U(SupportedAlgorithms)
Available on crate feature
dnssec
only.Subnet(ClientSubnet)
Unknown(u16, Vec<u8>)
Unknown, used to deal with unknown or unsupported codes
Implementations§
Trait Implementations§
Source§impl BinEncodable for EdnsOption
impl BinEncodable for EdnsOption
Source§fn emit(&self, encoder: &mut BinEncoder<'_>) -> Result<(), ProtoError>
fn emit(&self, encoder: &mut BinEncoder<'_>) -> Result<(), ProtoError>
Write the type to the stream
Source§impl Clone for EdnsOption
impl Clone for EdnsOption
Source§fn clone(&self) -> EdnsOption
fn clone(&self) -> EdnsOption
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EdnsOption
impl Debug for EdnsOption
Source§impl<'de> Deserialize<'de> for EdnsOption
impl<'de> Deserialize<'de> for EdnsOption
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> From<&'a EdnsOption> for EdnsCode
impl<'a> From<&'a EdnsOption> for EdnsCode
Source§fn from(value: &'a EdnsOption) -> Self
fn from(value: &'a EdnsOption) -> Self
Converts to this type from the input type.
Source§impl Hash for EdnsOption
impl Hash for EdnsOption
Source§impl PartialEq for EdnsOption
impl PartialEq for EdnsOption
Source§impl PartialOrd for EdnsOption
impl PartialOrd for EdnsOption
Source§impl Serialize for EdnsOption
impl Serialize for EdnsOption
Source§impl<'a> TryFrom<&'a EdnsOption> for Vec<u8>
impl<'a> TryFrom<&'a EdnsOption> for Vec<u8>
Source§type Error = ProtoError
type Error = ProtoError
The type returned in the event of a conversion error.
Source§impl<'a> TryFrom<(EdnsCode, &'a [u8])> for EdnsOption
impl<'a> TryFrom<(EdnsCode, &'a [u8])> for EdnsOption
only the supported extensions are listed right now.
impl Eq for EdnsOption
impl StructuralPartialEq for EdnsOption
Auto Trait Implementations§
impl Freeze for EdnsOption
impl RefUnwindSafe for EdnsOption
impl Send for EdnsOption
impl Sync for EdnsOption
impl Unpin for EdnsOption
impl UnwindSafe for EdnsOption
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.