pub struct HeaderCounts {
pub query_count: usize,
pub answer_count: usize,
pub nameserver_count: usize,
pub additional_count: usize,
}
Tracks the counts of the records in the Message.
This is only used internally during serialization.
The number of queries in the Message
The number of answers in the Message
The number of nameservers or authorities in the Message
The number of additional records in the Message
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static