Struct updns::DnsQuestion
source · pub struct DnsQuestion {
pub name: String,
pub qtype: QueryType,
}
Fields§
§name: String
§qtype: QueryType
Implementations§
source§impl DnsQuestion
impl DnsQuestion
pub fn new(name: String, qtype: QueryType) -> DnsQuestion
pub fn read(&mut self, buffer: &mut BytePacketBuffer) -> Result<()>
pub fn write(&self, buffer: &mut BytePacketBuffer) -> Result<()>
Trait Implementations§
source§impl Clone for DnsQuestion
impl Clone for DnsQuestion
source§fn clone(&self) -> DnsQuestion
fn clone(&self) -> DnsQuestion
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 DnsQuestion
impl Debug for DnsQuestion
source§impl PartialEq<DnsQuestion> for DnsQuestion
impl PartialEq<DnsQuestion> for DnsQuestion
source§fn eq(&self, other: &DnsQuestion) -> bool
fn eq(&self, other: &DnsQuestion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.