pub struct ParsingMetadata {
pub header_count: usize,
pub duplicate_headers: Vec<String>,
pub case_variations: HashMap<String, Vec<String>>,
pub parsing_time_ns: u64,
pub has_malformed_headers: bool,
pub request_line_length: usize,
pub total_headers_length: usize,
}
Expand description
Advanced parsing metadata for fingerprinting
Fields§
§header_count: usize
§duplicate_headers: Vec<String>
§case_variations: HashMap<String, Vec<String>>
§parsing_time_ns: u64
§has_malformed_headers: bool
§request_line_length: usize
§total_headers_length: usize
Implementations§
Source§impl ParsingMetadata
impl ParsingMetadata
pub fn new() -> Self
pub fn with_timing<F, R>(self, f: F) -> (R, Self)where
F: FnOnce() -> R,
Trait Implementations§
Source§impl Clone for ParsingMetadata
impl Clone for ParsingMetadata
Source§fn clone(&self) -> ParsingMetadata
fn clone(&self) -> ParsingMetadata
Returns a duplicate of the value. Read more
1.0.0 · 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 ParsingMetadata
impl Debug for ParsingMetadata
Auto Trait Implementations§
impl Freeze for ParsingMetadata
impl RefUnwindSafe for ParsingMetadata
impl Send for ParsingMetadata
impl Sync for ParsingMetadata
impl Unpin for ParsingMetadata
impl UnwindSafe for ParsingMetadata
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