Enum rs_logger::LoggingLevel
source · pub enum LoggingLevel {
Trace,
Info,
Warning,
Error,
Critical,
}
Expand description
LoggingLevel enum.
It goes from LoggingLevel::Trace to LoggingLevel::Critical.
Trace prints everything, Info prints info and anything With a higher precedence.
Critical has the highest precedence and only prints critical logs.
The precedence is: Critical > Error > Warning > Info > Trace.
Variants§
Trait Implementations§
source§impl Clone for LoggingLevel
impl Clone for LoggingLevel
source§fn clone(&self) -> LoggingLevel
fn clone(&self) -> LoggingLevel
Returns a copy 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 LoggingLevel
impl Debug for LoggingLevel
source§impl Display for LoggingLevel
impl Display for LoggingLevel
source§impl Ord for LoggingLevel
impl Ord for LoggingLevel
source§fn cmp(&self, other: &LoggingLevel) -> Ordering
fn cmp(&self, other: &LoggingLevel) -> Ordering
1.21.0 · 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 LoggingLevel
impl PartialEq for LoggingLevel
source§fn eq(&self, other: &LoggingLevel) -> bool
fn eq(&self, other: &LoggingLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for LoggingLevel
impl PartialOrd for LoggingLevel
source§fn partial_cmp(&self, other: &LoggingLevel) -> Option<Ordering>
fn partial_cmp(&self, other: &LoggingLevel) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for LoggingLevel
impl Eq for LoggingLevel
impl StructuralPartialEq for LoggingLevel
Auto Trait Implementations§
impl RefUnwindSafe for LoggingLevel
impl Send for LoggingLevel
impl Sync for LoggingLevel
impl Unpin for LoggingLevel
impl UnwindSafe for LoggingLevel
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