[−][src]Struct trust_dns_client::op::LowerQuery
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 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<'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]
impl BinEncodable for LowerQuery
[src]
fn emit(&self, encoder: &mut BinEncoder<'_>) -> ProtoResult<()>
[src]
fn to_bytes(&self) -> Result<Vec<u8>, ProtoError>
[src]
impl Clone for LowerQuery
[src]
fn clone(&self) -> LowerQuery
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for LowerQuery
[src]
impl Display for LowerQuery
[src]
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 StructuralPartialEq for LowerQuery
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,