Struct cdns_rs::common::DnsRequestAnswer
source · pub struct DnsRequestAnswer {
pub header: DnsHeader,
pub request: DnsRequestPayload,
pub response: Vec<DnsResponsePayload>,
pub additional: Vec<DnsResponsePayload>,
pub authoratives: Vec<DnsResponsePayload>,
}
Fields§
§header: DnsHeader
request header
request: DnsRequestPayload
Query content
response: Vec<DnsResponsePayload>
Resonse section
additional: Vec<DnsResponsePayload>
Additional RR
Authortative nameservers
Implementations§
source§impl DnsRequestAnswer
impl DnsRequestAnswer
pub async fn async_try_from(value: &[u8]) -> CDnsResult<Self>
source§impl DnsRequestAnswer
impl DnsRequestAnswer
sourcepub fn verify(&self, req: &DnsRequestHeader) -> CDnsResult<()>
pub fn verify(&self, req: &DnsRequestHeader) -> CDnsResult<()>
Trait Implementations§
source§impl Clone for DnsRequestAnswer
impl Clone for DnsRequestAnswer
source§fn clone(&self) -> DnsRequestAnswer
fn clone(&self) -> DnsRequestAnswer
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 DnsRequestAnswer
impl Debug for DnsRequestAnswer
source§impl Default for DnsRequestAnswer
impl Default for DnsRequestAnswer
source§fn default() -> DnsRequestAnswer
fn default() -> DnsRequestAnswer
Returns the “default value” for a type. Read more
source§impl PartialEq for DnsRequestAnswer
impl PartialEq for DnsRequestAnswer
source§fn eq(&self, other: &DnsRequestAnswer) -> bool
fn eq(&self, other: &DnsRequestAnswer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<&[u8]> for DnsRequestAnswer
impl TryFrom<&[u8]> for DnsRequestAnswer
impl Eq for DnsRequestAnswer
impl StructuralPartialEq for DnsRequestAnswer
Auto Trait Implementations§
impl Freeze for DnsRequestAnswer
impl RefUnwindSafe for DnsRequestAnswer
impl Send for DnsRequestAnswer
impl Sync for DnsRequestAnswer
impl Unpin for DnsRequestAnswer
impl UnwindSafe for DnsRequestAnswer
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