pub struct TraceLevel(/* private fields */);Expand description
Trace levels for different types of events
Implementations§
Source§impl TraceLevel
impl TraceLevel
Sourcepub const NONE: TraceLevel
pub const NONE: TraceLevel
No tracing
Sourcepub const COMMANDS: TraceLevel
pub const COMMANDS: TraceLevel
Trace commands only
Sourcepub const MESSAGES: TraceLevel
pub const MESSAGES: TraceLevel
Trace messages only
Sourcepub const EVENTS: TraceLevel
pub const EVENTS: TraceLevel
Trace events only
Sourcepub const METRICS: TraceLevel
pub const METRICS: TraceLevel
Trace performance metrics
Sourcepub const ALL: TraceLevel
pub const ALL: TraceLevel
Trace everything
Sourcepub fn contains(&self, other: TraceLevel) -> bool
pub fn contains(&self, other: TraceLevel) -> bool
Check if a specific level is enabled
Sourcepub fn combine(&self, other: TraceLevel) -> TraceLevel
pub fn combine(&self, other: TraceLevel) -> TraceLevel
Combine trace levels
Sourcepub fn parse(s: &str) -> TraceLevel
pub fn parse(s: &str) -> TraceLevel
Parse from string (comma-separated)
Trait Implementations§
Source§impl Clone for TraceLevel
impl Clone for TraceLevel
Source§fn clone(&self) -> TraceLevel
fn clone(&self) -> TraceLevel
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 moreimpl Copy for TraceLevel
Source§impl Debug for TraceLevel
impl Debug for TraceLevel
Source§impl Default for TraceLevel
impl Default for TraceLevel
impl Eq for TraceLevel
Source§impl Ord for TraceLevel
impl Ord for TraceLevel
Source§fn cmp(&self, other: &TraceLevel) -> Ordering
fn cmp(&self, other: &TraceLevel) -> 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
Source§impl PartialEq for TraceLevel
impl PartialEq for TraceLevel
Source§impl PartialOrd for TraceLevel
impl PartialOrd for TraceLevel
impl StructuralPartialEq for TraceLevel
Auto Trait Implementations§
impl Freeze for TraceLevel
impl RefUnwindSafe for TraceLevel
impl Send for TraceLevel
impl Sync for TraceLevel
impl Unpin for TraceLevel
impl UnsafeUnpin for TraceLevel
impl UnwindSafe for TraceLevel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Inspectable for T
impl<T> Inspectable for T
Source§fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
Conditionally inspect this value
Source§fn inspect_with<F>(self, label: &str, f: F) -> Self
fn inspect_with<F>(self, label: &str, f: F) -> Self
Inspect with a custom formatter