Struct trust_dns::op::LowerQuery[][src]

pub struct LowerQuery { /* fields omitted */ }

Identical to [trust_dns::op::Query], except that the Name is guaranteed to be in lower case form

Methods

impl LowerQuery
[src]

Create a new query from name and type, class defaults to IN

QNAME           a domain name represented as a sequence of labels, where
                each label consists of a length octet followed by that
                number of octets.  The domain name terminates with the
                zero length octet for the null label of the root.  Note
                that this field may be an odd number of octets; no
                padding is used.

Returns the original with the Names case preserved

QTYPE           a two octet code which specifies the type of the query.
                The values for this field include all codes valid for a
                TYPE field, together with some more general codes which
                can match more than one type of RR.

QCLASS          a two octet code that specifies the class of the query.
                For example, the QCLASS field is IN for the Internet.

Trait Implementations

impl Clone for LowerQuery
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for LowerQuery
[src]

Formats the value using the given formatter. Read more

impl PartialEq for LowerQuery
[src]

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

This method tests for !=.

impl From<Query> for LowerQuery
[src]

Performs the conversion.

impl BinEncodable for LowerQuery
[src]

Write the type to the stream

Returns the object in binary form

impl<'r> BinDecodable<'r> for LowerQuery
[src]

Read the type from the stream

Returns the object in binary form

Auto Trait Implementations

impl Send for LowerQuery

impl Sync for LowerQuery