Struct nex_packet::dns::Dns
source · pub struct Dns {Show 20 fields
pub id: u16be,
pub is_response: u1,
pub opcode: OpCode,
pub is_authoriative: u1,
pub is_truncated: u1,
pub is_recursion_desirable: u1,
pub is_recursion_available: u1,
pub zero_reserved: u1,
pub is_answer_authenticated: u1,
pub is_non_authenticated_data: u1,
pub rcode: RetCode,
pub query_count: u16be,
pub response_count: u16be,
pub authority_rr_count: u16be,
pub additional_rr_count: u16be,
pub queries: Vec<DnsQuery>,
pub responses: Vec<DnsResponse>,
pub authorities: Vec<DnsResponse>,
pub additionals: Vec<DnsResponse>,
pub payload: Vec<u8>,
}Expand description
Represents a DNS packet. Including its header and all the associated records.
Fields§
§id: u16be§is_response: u1§opcode: OpCode§is_truncated: u1§is_recursion_desirable: u1§is_recursion_available: u1§zero_reserved: u1§is_answer_authenticated: u1§is_non_authenticated_data: u1§rcode: RetCode§query_count: u16be§response_count: u16be§additional_rr_count: u16be§queries: Vec<DnsQuery>§responses: Vec<DnsResponse>§additionals: Vec<DnsResponse>§payload: Vec<u8>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dns
impl RefUnwindSafe for Dns
impl Send for Dns
impl Sync for Dns
impl Unpin for Dns
impl UnwindSafe for Dns
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