Struct trust_dns_proto::op::Edns
[−]
[src]
pub struct Edns { /* fields omitted */ }
Edns implements the higher level concepts for working with extended dns as it is used to create or be created from OPT record data.
Methods
impl Edns
[src]
fn new() -> Self
[src]
Creates a new extended DNS object.
fn rcode_high(&self) -> u8
[src]
The high order bytes for the response code in the DNS Message
fn version(&self) -> u8
[src]
Returns the EDNS version
fn dnssec_ok(&self) -> bool
[src]
Specifies that DNSSec is supported for this Client or Server
fn max_payload(&self) -> u16
[src]
Maximum supported size of the DNS payload
fn option(&self, code: &EdnsCode) -> Option<&EdnsOption>
[src]
Returns the Option associated with the code
fn options(&self) -> &OPT
[src]
Returns the options portion of EDNS
fn set_rcode_high(&mut self, rcode_high: u8)
[src]
Set the high order bits for the result code.
fn set_version(&mut self, version: u8)
[src]
Set the EDNS version
fn set_dnssec_ok(&mut self, dnssec_ok: bool)
[src]
Set to true if DNSSec is supported
fn set_max_payload(&mut self, max_payload: u16)
[src]
Set the maximum payload which can be supported
From RFC 6891: Values lower than 512 MUST be treated as equal to 512
fn set_option(&mut self, option: EdnsOption)
[src]
Set the specified EDNS option
Trait Implementations
impl Debug for Edns
[src]
impl PartialEq for Edns
[src]
fn eq(&self, __arg_0: &Edns) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Edns) -> bool
[src]
This method tests for !=
.
impl Clone for Edns
[src]
fn clone(&self) -> Edns
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more