Struct trust_dns_client::op::LowerQuery
source · [−]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
sourceimpl 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
sourceimpl<'r> BinDecodable<'r> for LowerQuery
impl<'r> BinDecodable<'r> for LowerQuery
sourcefn read(decoder: &mut BinDecoder<'r>) -> ProtoResult<Self>
fn read(decoder: &mut BinDecoder<'r>) -> ProtoResult<Self>
Read the type from the stream
sourcefn from_bytes(bytes: &'r [u8]) -> Result<Self, ProtoError>
fn from_bytes(bytes: &'r [u8]) -> Result<Self, ProtoError>
Returns the object in binary form
sourceimpl BinEncodable for LowerQuery
impl BinEncodable for LowerQuery
sourcefn emit(&self, encoder: &mut BinEncoder<'_>) -> ProtoResult<()>
fn emit(&self, encoder: &mut BinEncoder<'_>) -> ProtoResult<()>
Write the type to the stream
sourceimpl Clone for LowerQuery
impl Clone for LowerQuery
sourcefn clone(&self) -> LowerQuery
fn clone(&self) -> LowerQuery
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LowerQuery
impl Debug for LowerQuery
sourceimpl Display for LowerQuery
impl Display for LowerQuery
sourceimpl From<Query> for LowerQuery
impl From<Query> for LowerQuery
sourceimpl PartialEq<LowerQuery> for LowerQuery
impl PartialEq<LowerQuery> for LowerQuery
sourcefn eq(&self, other: &LowerQuery) -> bool
fn eq(&self, other: &LowerQuery) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LowerQuery) -> bool
fn ne(&self, other: &LowerQuery) -> bool
This method tests for !=
.
impl StructuralPartialEq for LowerQuery
Auto Trait Implementations
impl RefUnwindSafe for LowerQuery
impl Send for LowerQuery
impl Sync for LowerQuery
impl Unpin for LowerQuery
impl UnwindSafe for LowerQuery
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more