[−][src]Struct trust_dns::op::LowerQuery
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 Name
s 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]
fn from(query: Query) -> LowerQuery
[src]
impl PartialEq<LowerQuery> for LowerQuery
[src]
fn eq(&self, other: &LowerQuery) -> bool
[src]
fn ne(&self, other: &LowerQuery) -> bool
[src]
impl Clone for LowerQuery
[src]
fn clone(&self) -> 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 emit(&self, encoder: &mut BinEncoder) -> ProtoResult<()>
[src]
fn to_bytes(&self) -> Result<Vec<u8>, ProtoError>
[src]
Returns the object in binary form
impl<'r> BinDecodable<'r> for LowerQuery
[src]
fn read(decoder: &mut BinDecoder<'r>) -> ProtoResult<Self>
[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]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,