Struct trust_dns::op::query::Query [] [src]

pub struct Query {
    // some fields omitted
}

Methods

impl Query
[src]

fn new() -> Self

return a default query with an empty name and A, IN for the query_type and query_class

fn name(&mut self, name: Name) -> &mut Self

replaces name with the new name

fn query_type(&mut self, query_type: RecordType) -> &mut Self

fn query_class(&mut self, query_class: DNSClass) -> &mut Self

fn get_name(&self) -> &Name

fn get_query_type(&self) -> RecordType

fn get_query_class(&self) -> DNSClass

Trait Implementations

impl Debug for Query
[src]

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

Formats the value using the given formatter.

impl PartialEq for Query
[src]

fn eq(&self, __arg_0: &Query) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Query) -> bool

This method tests for !=.

impl BinSerializable<Query> for Query
[src]

fn read(decoder: &mut BinDecoder) -> DecodeResult<Self>

fn emit(&self, encoder: &mut BinEncoder) -> EncodeResult