pub enum LogLevel {
ALL,
DEBUG,
DISABLED,
ERROR,
FATAL,
INFO,
NONE,
TRACE,
VERBOSE,
WARNING,
}
Expand description
An enumeration of the different levels that a log message can have. Each variant of the enumeration represents a different level of importance.
§Arguments
ALL
- The log level is set to all.DEBUG
- The log level is set to debug.DISABLED
- The log level is set to disabled.ERROR
- The log level is set to error.FATAL
- The log level is set to fatal.INFO
- The log level is set to info.NONE
- The log level is set to none.TRACE
- The log level is set to trace.VERBOSE
- The log level is set to verbose.WARNING
- The log level is set to warning.
Variants§
ALL
The log level is set to all.
DEBUG
The log level is set to debug.
DISABLED
The log level is set to disabled.
ERROR
The log level is set to error.
FATAL
The log level is set to fatal.
INFO
The log level is set to info.
NONE
The log level is set to none.
TRACE
The log level is set to trace.
VERBOSE
The log level is set to verbose.
WARNING
The log level is set to warning.
Trait Implementations§
Source§impl Display for LogLevel
Display trait implementation for LogLevel
.
impl Display for LogLevel
Display trait implementation for LogLevel
.
This converts the enum to a string representation.
Source§impl PartialOrd for LogLevel
impl PartialOrd for LogLevel
impl Copy for LogLevel
impl Eq for LogLevel
impl StructuralPartialEq for LogLevel
Auto Trait Implementations§
impl Freeze for LogLevel
impl RefUnwindSafe for LogLevel
impl Send for LogLevel
impl Sync for LogLevel
impl Unpin for LogLevel
impl UnwindSafe for LogLevel
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more