pub struct DnsRequestAnswer<'temp> {
pub req_header: DnsRequestHeader<'temp>,
pub response: Vec<DnsResponsePayload>,
pub additional: Vec<DnsResponsePayload>,
pub authoratives: Vec<DnsResponsePayload>,
}Fields§
§req_header: DnsRequestHeader<'temp>request header
response: Vec<DnsResponsePayload>Resonse section
additional: Vec<DnsResponsePayload>Additional RR
Authortative nameservers
Implementations§
Source§impl<'temp> DnsRequestAnswer<'temp>
impl<'temp> DnsRequestAnswer<'temp>
pub fn get_req_id(&self) -> u16
Sourcepub fn verify(&self, req: &DnsRequestHeader<'_>) -> CDnsResult<()>
pub fn verify(&self, req: &DnsRequestHeader<'_>) -> CDnsResult<()>
Trait Implementations§
Source§impl<'temp> Clone for DnsRequestAnswer<'temp>
impl<'temp> Clone for DnsRequestAnswer<'temp>
Source§fn clone(&self) -> DnsRequestAnswer<'temp>
fn clone(&self) -> DnsRequestAnswer<'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 DnsRequestAnswer<'temp>
impl<'temp> Debug for DnsRequestAnswer<'temp>
Source§impl<'temp> PartialEq for DnsRequestAnswer<'temp>
impl<'temp> PartialEq for DnsRequestAnswer<'temp>
impl<'temp> Eq for DnsRequestAnswer<'temp>
impl<'temp> StructuralPartialEq for DnsRequestAnswer<'temp>
Auto Trait Implementations§
impl<'temp> Freeze for DnsRequestAnswer<'temp>
impl<'temp> RefUnwindSafe for DnsRequestAnswer<'temp>
impl<'temp> Send for DnsRequestAnswer<'temp>
impl<'temp> Sync for DnsRequestAnswer<'temp>
impl<'temp> Unpin for DnsRequestAnswer<'temp>
impl<'temp> UnwindSafe for DnsRequestAnswer<'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