[][src]Struct trust_dns_client::op::LowerQuery

pub struct LowerQuery { /* fields omitted */ }

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

Implementations

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<'r> BinDecodable<'r> for LowerQuery[src]

impl BinEncodable for LowerQuery[src]

impl Clone for LowerQuery[src]

impl Debug for LowerQuery[src]

impl Display for LowerQuery[src]

impl From<Query> for LowerQuery[src]

impl PartialEq<LowerQuery> for LowerQuery[src]

impl StructuralPartialEq for LowerQuery[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,