pub struct Header {
pub id: u16,
pub qr: Qr,
pub op: OpCode,
pub authoritative: bool,
pub truncated: bool,
pub recursion_desired: bool,
pub recursion_available: bool,
pub rcode: RCode,
}Expand description
Represents a message header.
Fields§
§id: u16Transaction ID; corresponding replies will have the same ID.
qr: QrQuery or response
op: OpCodeKind of query
In a response, indicates that the responding name server is an authority for the domain name in question section.
truncated: boolIndicates whether the message was truncated due to length greater than that permitted on the transmission channel.
recursion_desired: boolIn a query, directs the name server to pursue the query recursively.
recursion_available: boolIn a response, indicates whether recursive queries are available on the name server.
rcode: RCodeResponse code
Implementations§
Trait Implementations§
impl Copy for Header
impl Eq for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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