Struct trust_dns_proto::op::Edns [−][src]
pub struct Edns { /* fields omitted */ }
Expand description
Edns implements the higher level concepts for working with extended dns as it is used to create or be created from OPT record data.
Implementations
The high order bytes for the response code in the DNS Message
Maximum supported size of the DNS payload
Returns the Option associated with the code
Returns a mutable options portion of EDNS
Set the high order bits for the result code.
Set the EDNS version
Set to true if DNSSec is supported
Set the maximum payload which can be supported
From RFC 6891: Values lower than 512 MUST be treated as equal to 512
👎 Deprecated: Please use options_mut().insert() to modify
Please use options_mut().insert() to modify
Set the specified EDNS option
Trait Implementations
Write the type to the stream
Returns the object in binary form
Auto Trait Implementations
impl RefUnwindSafe for Edns
impl UnwindSafe for Edns
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more