pub struct HeaderCounts {
pub queries: u16,
pub answers: u16,
pub authorities: u16,
pub additionals: u16,
}Expand description
Tracks the counts of the records in the Message.
This is only used internally during serialization.
Fields§
§queries: u16The number of queries in the Message
answers: u16The number of answer records in the Message
The number of authority records in the Message
additionals: u16The number of additional records in the Message
Trait Implementations§
Source§impl Clone for HeaderCounts
impl Clone for HeaderCounts
Source§fn clone(&self) -> HeaderCounts
fn clone(&self) -> HeaderCounts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HeaderCounts
impl Debug for HeaderCounts
Source§impl Default for HeaderCounts
impl Default for HeaderCounts
Source§fn default() -> HeaderCounts
fn default() -> HeaderCounts
Returns the “default value” for a type. Read more
Source§impl Hash for HeaderCounts
impl Hash for HeaderCounts
Source§impl PartialEq for HeaderCounts
impl PartialEq for HeaderCounts
Source§fn eq(&self, other: &HeaderCounts) -> bool
fn eq(&self, other: &HeaderCounts) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for HeaderCounts
impl PartialOrd for HeaderCounts
impl Copy for HeaderCounts
impl Eq for HeaderCounts
impl StructuralPartialEq for HeaderCounts
Auto Trait Implementations§
impl Freeze for HeaderCounts
impl RefUnwindSafe for HeaderCounts
impl Send for HeaderCounts
impl Sync for HeaderCounts
impl Unpin for HeaderCounts
impl UnsafeUnpin for HeaderCounts
impl UnwindSafe for HeaderCounts
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