pub struct DnsRequestPayload<'temp> {
pub qname: Cow<'temp, [u8]>,
pub qtype: QType,
pub qclass: QClass,
}Expand description
A request payload with (request) lines.
Fields§
§qname: Cow<'temp, [u8]>a domain name represented as a sequence of labels
qtype: QTypea two octet code which specifies the type of the query.
qclass: QClassa two octet code that specifies the class of the query.
Implementations§
Trait Implementations§
Source§impl<'temp> Clone for DnsRequestPayload<'temp>
impl<'temp> Clone for DnsRequestPayload<'temp>
Source§fn clone(&self) -> DnsRequestPayload<'temp>
fn clone(&self) -> DnsRequestPayload<'temp>
Returns a duplicate 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<'temp> Debug for DnsRequestPayload<'temp>
impl<'temp> Debug for DnsRequestPayload<'temp>
Source§impl<'temp> Display for DnsRequestPayload<'temp>
impl<'temp> Display for DnsRequestPayload<'temp>
Source§impl<'temp> Hash for DnsRequestPayload<'temp>
impl<'temp> Hash for DnsRequestPayload<'temp>
Source§impl<'temp> PartialEq for DnsRequestPayload<'temp>
impl<'temp> PartialEq for DnsRequestPayload<'temp>
impl<'temp> Eq for DnsRequestPayload<'temp>
impl<'temp> StructuralPartialEq for DnsRequestPayload<'temp>
Auto Trait Implementations§
impl<'temp> Freeze for DnsRequestPayload<'temp>
impl<'temp> RefUnwindSafe for DnsRequestPayload<'temp>
impl<'temp> Send for DnsRequestPayload<'temp>
impl<'temp> Sync for DnsRequestPayload<'temp>
impl<'temp> Unpin for DnsRequestPayload<'temp>
impl<'temp> UnwindSafe for DnsRequestPayload<'temp>
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