Struct trust_dns::op::Edns [] [src]

pub struct Edns {
    // some fields omitted
}

Methods

impl Edns
[src]

fn new() -> Self

fn get_rcode_high(&self) -> u8

fn get_version(&self) -> u8

fn is_dnssec_ok(&self) -> bool

fn get_max_payload(&self) -> u16

fn get_option(&self, code: &EdnsCode) -> Option<&EdnsOption>

fn get_options(&self) -> &HashMap<EdnsCode, EdnsOption>

fn set_rcode_high(&mut self, rcode_high: u8)

fn set_version(&mut self, version: u8)

fn set_dnssec_ok(&mut self, dnssec_ok: bool)

fn set_max_payload(&mut self, max_payload: u16)

fn set_option(&mut self, code: EdnsCode, option: EdnsOption)

Trait Implementations

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

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 Debug for Edns
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'a> From<&'a Record> for Edns
[src]

fn from(value: &'a Record) -> Self

Performs the conversion.