pub enum Verbosity {
Off,
Error,
Warn,
Info,
Debug,
Trace,
}Expand description
A thin abstraction around the tracing crate’s
LevelFilter, introduced to provide deserialization.
A verbosity level is “higher” if it is more verbose. In this sense,
Trace is higher (more verbose) than
Error.
Conversely, a verbosity level is “lower” if it is less verbose. In this
sense, Warn is lower than Info.
Variants§
Off
Log nothing.
Error
Log at level ERROR only.
Warn
Log at level WARN and lower.
Info
Log at level INFO and lower.
Debug
Log at level DEBUG and lower.
Trace
Log everything.
Implementations§
Source§impl Verbosity
impl Verbosity
Sourcepub fn to_tracing_level_filter(&self) -> TracingLevelFilter
pub fn to_tracing_level_filter(&self) -> TracingLevelFilter
Translates this Verbosity level to the tracing crate’s
LevelFilter.
Trait Implementations§
impl Copy for Verbosity
Source§impl<'de> Deserialize<'de> for Verbosity
impl<'de> Deserialize<'de> for Verbosity
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Verbosity
Source§impl From<&Verbosity> for LevelFilter
impl From<&Verbosity> for LevelFilter
Source§impl From<Verbosity> for LevelFilter
impl From<Verbosity> for LevelFilter
Source§impl Ord for Verbosity
impl Ord for Verbosity
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 PartialOrd for Verbosity
impl PartialOrd for Verbosity
impl StructuralPartialEq for Verbosity
Auto Trait Implementations§
impl Freeze for Verbosity
impl RefUnwindSafe for Verbosity
impl Send for Verbosity
impl Sync for Verbosity
impl Unpin for Verbosity
impl UnsafeUnpin for Verbosity
impl UnwindSafe for Verbosity
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