Struct trust_dns::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
Creates a new extended DNS object.
fn rcode_high(&self) -> u8
The high order bytes for the response code in the DNS Message
fn version(&self) -> u8
Returns the EDNS version
fn dnssec_ok(&self) -> bool
Specifies that DNSSec is supported for this Client or Server
fn max_payload(&self) -> u16
Maximum supported size of the DNS payload
fn option(&self, code: &EdnsCode) -> Option<&EdnsOption>
Returns the Option associated with the code
fn options(&self) -> &OPT
Returns the options portion of EDNS
fn set_rcode_high(&mut self, rcode_high: u8)
Set the high order bits for the result code.
fn set_version(&mut self, version: u8)
Set the EDNS version
fn set_dnssec_ok(&mut self, dnssec_ok: bool)
Set to true if DNSSec is supported
fn set_max_payload(&mut self, max_payload: u16)
Set the maximum payload which can be supported
fn set_option(&mut self, option: EdnsOption)
Set the specified EDNS option
Trait Implementations
impl Debug for Edns
[src]
impl PartialEq for Edns
[src]
fn eq(&self, __arg_0: &Edns) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Edns) -> bool
This method tests for !=
.
impl Clone for Edns
[src]
fn clone(&self) -> Edns
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more