pub struct DnsHeader {
pub id: u16,
pub flags: u16,
pub questions: u16,
pub answers: u16,
pub authorities: u16,
pub additionals: u16,
}Expand description
DNS header structure
Fields§
§id: u16Transaction ID
flags: u16Flags field
questions: u16Number of questions
answers: u16Number of answer records
Number of authority records
additionals: u16Number of additional records
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DnsHeader
impl RefUnwindSafe for DnsHeader
impl Send for DnsHeader
impl Sync for DnsHeader
impl Unpin for DnsHeader
impl UnwindSafe for DnsHeader
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