pub struct LowerQuery { /* private fields */ }
Expand description
Identical to crate::op::Query, except that the Name is guaranteed to be in lower case form
Implementations§
Source§impl LowerQuery
impl LowerQuery
Sourcepub fn name(&self) -> &LowerName
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.
Sourcepub fn query_type(&self) -> RecordType
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.
Sourcepub fn query_class(&self) -> DNSClass
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§
Source§impl<'r> BinDecodable<'r> for LowerQuery
impl<'r> BinDecodable<'r> for LowerQuery
Source§fn read(decoder: &mut BinDecoder<'r>) -> Result<Self, ProtoError>
fn read(decoder: &mut BinDecoder<'r>) -> Result<Self, ProtoError>
Read the type from the stream
Source§fn from_bytes(bytes: &'r [u8]) -> Result<Self, ProtoError>
fn from_bytes(bytes: &'r [u8]) -> Result<Self, ProtoError>
Returns the object in binary form
Source§impl BinEncodable for LowerQuery
impl BinEncodable for LowerQuery
Source§fn emit(&self, encoder: &mut BinEncoder<'_>) -> Result<(), ProtoError>
fn emit(&self, encoder: &mut BinEncoder<'_>) -> Result<(), ProtoError>
Write the type to the stream
Source§impl Clone for LowerQuery
impl Clone for LowerQuery
Source§fn clone(&self) -> LowerQuery
fn clone(&self) -> LowerQuery
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LowerQuery
impl Debug for LowerQuery
Source§impl Display for LowerQuery
impl Display for LowerQuery
Source§impl From<Query> for LowerQuery
impl From<Query> for LowerQuery
Source§impl PartialEq for LowerQuery
impl PartialEq for LowerQuery
impl Eq for LowerQuery
impl StructuralPartialEq for LowerQuery
Auto Trait Implementations§
impl Freeze for LowerQuery
impl RefUnwindSafe for LowerQuery
impl Send for LowerQuery
impl Sync for LowerQuery
impl Unpin for LowerQuery
impl UnwindSafe for LowerQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.