#[non_exhaustive]pub enum DetailLevel {
Control,
Headers,
HeadersSizes,
HeadersData,
Full,
Other(String),
}Expand description
Detail level — declares what was recorded.
Each known level is a strict superset of the one above it, which is what
the Ord impl orders by. DetailLevel::Other sorts above Full
deliberately: a level this crate does not know might reveal anything, and
a privacy check written as detail >= HeadersData should err towards
warning rather than towards silence.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Control
Control messages only.
Headers
Control messages + data stream headers and object metadata.
HeadersSizes
Headers + payload byte lengths.
HeadersData
Headers + full payload bytes.
Full
Everything above + raw wire bytes.
Other(String)
A level this version of the crate does not know, kept verbatim.
Implementations§
Trait Implementations§
Source§impl Clone for DetailLevel
impl Clone for DetailLevel
Source§fn clone(&self) -> DetailLevel
fn clone(&self) -> DetailLevel
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 DetailLevel
impl Debug for DetailLevel
Source§impl Display for DetailLevel
impl Display for DetailLevel
impl Eq for DetailLevel
Source§impl Ord for DetailLevel
impl Ord for DetailLevel
Source§fn cmp(&self, other: &DetailLevel) -> Ordering
fn cmp(&self, other: &DetailLevel) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for DetailLevel
impl PartialEq for DetailLevel
Source§impl PartialOrd for DetailLevel
impl PartialOrd for DetailLevel
impl StructuralPartialEq for DetailLevel
Auto Trait Implementations§
impl Freeze for DetailLevel
impl RefUnwindSafe for DetailLevel
impl Send for DetailLevel
impl Sync for DetailLevel
impl Unpin for DetailLevel
impl UnsafeUnpin for DetailLevel
impl UnwindSafe for DetailLevel
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