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

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]

pub fn query(query: Query) -> Self[src]

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

pub fn name(&self) -> &LowerName[src]

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.

pub fn original(&self) -> &Query[src]

Returns the original with the Names case preserved

pub fn query_type(&self) -> RecordType[src]

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.

pub fn query_class(&self) -> DNSClass[src]

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 From<Query> for LowerQuery[src]

impl PartialEq<LowerQuery> for LowerQuery[src]

impl Clone for LowerQuery[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Display for LowerQuery[src]

impl Debug for LowerQuery[src]

impl BinEncodable for LowerQuery[src]

fn to_bytes(&self) -> Result<Vec<u8>, ProtoError>[src]

Returns the object in binary form

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

fn from_bytes(bytes: &'r [u8]) -> Result<Self, ProtoError>[src]

Returns the object in binary form

Auto Trait Implementations

impl Send for LowerQuery

impl Sync for LowerQuery

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T