pub struct DnsRepr<'a> {
pub transaction_id: u16,
pub opcode: Opcode,
pub flags: Flags,
pub question: Question<'a>,
}Expand description
High-level DNS packet representation.
Currently only supports query packets.
Fields§
§transaction_id: u16§opcode: Opcode§flags: Flags§question: Question<'a>Implementations§
Trait Implementations§
impl<'a> Eq for Repr<'a>
impl<'a> StructuralPartialEq for Repr<'a>
Auto Trait Implementations§
impl<'a> Freeze for Repr<'a>
impl<'a> RefUnwindSafe for Repr<'a>
impl<'a> Send for Repr<'a>
impl<'a> Sync for Repr<'a>
impl<'a> Unpin for Repr<'a>
impl<'a> UnwindSafe for Repr<'a>
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