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]
impl LowerQuery
pub fn query(query: Query) -> Self
[src]
pub fn query(query: Query) -> Self
Create a new query from name and type, class defaults to IN
pub fn name(&self) -> &LowerName
[src]
pub fn name(&self) -> &LowerName
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]
pub fn original(&self) -> &Query
Returns the original with the Name
s case preserved
pub fn query_type(&self) -> RecordType
[src]
pub fn query_type(&self) -> RecordType
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]
pub fn query_class(&self) -> DNSClass
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]
impl Clone for LowerQuery
fn clone(&self) -> LowerQuery
[src]
fn clone(&self) -> LowerQuery
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for LowerQuery
[src]
impl Debug for LowerQuery
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for LowerQuery
[src]
impl PartialEq for LowerQuery
fn eq(&self, other: &LowerQuery) -> bool
[src]
fn eq(&self, other: &LowerQuery) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &LowerQuery) -> bool
[src]
fn ne(&self, other: &LowerQuery) -> bool
This method tests for !=
.
impl From<Query> for LowerQuery
[src]
impl From<Query> for LowerQuery
fn from(query: Query) -> LowerQuery
[src]
fn from(query: Query) -> LowerQuery
Performs the conversion.
impl BinEncodable for LowerQuery
[src]
impl BinEncodable for LowerQuery
fn emit(&self, encoder: &mut BinEncoder) -> ProtoResult<()>
[src]
fn emit(&self, encoder: &mut BinEncoder) -> ProtoResult<()>
Write the type to the stream
fn to_bytes(&self) -> Result<Vec<u8>, ProtoError>
[src]
fn to_bytes(&self) -> Result<Vec<u8>, ProtoError>
Returns the object in binary form
impl<'r> BinDecodable<'r> for LowerQuery
[src]
impl<'r> BinDecodable<'r> for LowerQuery
fn read(decoder: &mut BinDecoder<'r>) -> ProtoResult<Self>
[src]
fn read(decoder: &mut BinDecoder<'r>) -> ProtoResult<Self>
Read the type from the stream
fn from_bytes(bytes: &'r [u8]) -> Result<Self, ProtoError>
[src]
fn from_bytes(bytes: &'r [u8]) -> Result<Self, ProtoError>
Returns the object in binary form
Auto Trait Implementations
impl Send for LowerQuery
impl Send for LowerQuery
impl Sync for LowerQuery
impl Sync for LowerQuery