pub struct MappedLevels {
pub trace: Level,
pub debug: Level,
pub info: Level,
pub warn: Level,
pub error: Level,
}Expand description
Allows mapping tracing::Level events to a different
console level.
Fields§
§trace: LevelThe verbosity level tracing::Level::TRACE events should be mapped to
in the console.
debug: LevelThe verbosity level tracing::Level::DEBUG events should be mapped to
in the console.
info: LevelThe verbosity level tracing::Level::INFO events should be mapped to
in the console.
warn: LevelThe verbosity level tracing::Level::WARN events should be mapped to
in the console.
error: LevelThe verbosity level tracing::Level::ERROR events should be mapped to
in the console.
Trait Implementations§
Source§impl Clone for MappedLevels
impl Clone for MappedLevels
Source§fn clone(&self) -> MappedLevels
fn clone(&self) -> MappedLevels
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 MappedLevels
impl Debug for MappedLevels
Source§impl Default for MappedLevels
impl Default for MappedLevels
Source§impl From<MappedLevels> for MakeConsoleWriter
impl From<MappedLevels> for MakeConsoleWriter
Source§fn from(mapped_levels: MappedLevels) -> Self
fn from(mapped_levels: MappedLevels) -> Self
Converts to this type from the input type.
impl Copy for MappedLevels
Auto Trait Implementations§
impl Freeze for MappedLevels
impl RefUnwindSafe for MappedLevels
impl Send for MappedLevels
impl Sync for MappedLevels
impl Unpin for MappedLevels
impl UnwindSafe for MappedLevels
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