Enum sawp_dns::edns::OptionCode
source · [−]#[repr(u16)]
pub enum OptionCode {
Show 18 variants
LLQ,
UL,
NSID,
DAU,
DHU,
N3U,
EDNSCLIENTSUBNET,
EDNSEXPIRE,
COOKIE,
EDNSTCPKEEPALIVE,
PADDING,
CHAIN,
EDNSKEYTAG,
EDNSERROR,
EDNSCLIENTTAG,
EDNSSERVERTAG,
DEVICEID,
UNKNOWN,
}
Variants
LLQ
Long-Lived Queries
UL
Update Leases
NSID
Name Server Identifier
DAU
DNSSEC Algorithm Understood
DHU
DS Hash Understood
N3U
NSEC3 Hash Understood
EDNSCLIENTSUBNET
EDNS0 option to allow Recursive Resolvers, if they are willing, to forward details about the origin network from which a query is coming when talking to other nameservers
EDNSEXPIRE
See https://tools.ietf.org/html/rfc7314
COOKIE
See https://tools.ietf.org/html/rfc7873#section-4
EDNSTCPKEEPALIVE
Signals a variable idle timeout
PADDING
Allows DNS clients and servers to pad requests and responses by a variable number of octets
CHAIN
Allows a security-aware validating resolver to send a single query requesting a complete validation path along with the regular answer
EDNSKEYTAG
Provides origin authentication using digital signatures
EDNSERROR
Returning additional information about the cause of DNS errors
EDNSCLIENTTAG
Draft, usage is being determined. See https://www.ietf.org/archive/id/draft-bellis-dnsop-edns-tags-01.txt
EDNSSERVERTAG
Draft, usage is being determined. See https://www.ietf.org/archive/id/draft-bellis-dnsop-edns-tags-01.txt
DEVICEID
A way of identifying a device via DNS in the OPT RDATA
UNKNOWN
Implementations
sourceimpl OptionCode
impl OptionCode
Trait Implementations
sourceimpl Clone for OptionCode
impl Clone for OptionCode
sourcefn clone(&self) -> OptionCode
fn clone(&self) -> OptionCode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OptionCode
impl Debug for OptionCode
sourceimpl PartialEq<OptionCode> for OptionCode
impl PartialEq<OptionCode> for OptionCode
sourceimpl TryFrom<u16> for OptionCode
impl TryFrom<u16> for OptionCode
type Error = TryFromPrimitiveError<OptionCode>
type Error = TryFromPrimitiveError<OptionCode>
The type returned in the event of a conversion error.
sourcefn try_from(number: u16) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u16) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for OptionCode
impl TryFromPrimitive for OptionCode
type Primitive = u16
const NAME: &'static str = "OptionCode"
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for OptionCode
impl StructuralPartialEq for OptionCode
Auto Trait Implementations
impl RefUnwindSafe for OptionCode
impl Send for OptionCode
impl Sync for OptionCode
impl Unpin for OptionCode
impl UnwindSafe for OptionCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more