Enum sozu_command_lib::logging::LogLevel
source · [−]#[repr(usize)]
pub enum LogLevel {
Error,
Warn,
Info,
Debug,
Trace,
}
Variants
Error
The “error” level.
Designates very serious errors.
Warn
The “warn” level.
Designates hazardous situations.
Info
The “info” level.
Designates useful information.
Debug
The “debug” level.
Designates lower priority information.
Trace
The “trace” level.
Designates very low priority, often extremely verbose, information.
Implementations
sourceimpl LogLevel
impl LogLevel
sourcepub fn to_log_level_filter(self) -> LogLevelFilter
pub fn to_log_level_filter(self) -> LogLevelFilter
Converts the LogLevel
to the equivalent LogLevelFilter
.
Trait Implementations
sourceimpl Ord for LogLevel
impl Ord for LogLevel
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<LogLevelFilter> for LogLevel
impl PartialEq<LogLevelFilter> for LogLevel
sourcefn eq(&self, other: &LogLevelFilter) -> bool
fn eq(&self, other: &LogLevelFilter) -> bool
sourceimpl PartialOrd<LogLevel> for LogLevel
impl PartialOrd<LogLevel> for LogLevel
sourcefn partial_cmp(&self, other: &LogLevel) -> Option<Ordering>
fn partial_cmp(&self, other: &LogLevel) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl PartialOrd<LogLevel> for LogLevelFilter
impl PartialOrd<LogLevel> for LogLevelFilter
sourcefn partial_cmp(&self, other: &LogLevel) -> Option<Ordering>
fn partial_cmp(&self, other: &LogLevel) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl PartialOrd<LogLevelFilter> for LogLevel
impl PartialOrd<LogLevelFilter> for LogLevel
sourcefn partial_cmp(&self, other: &LogLevelFilter) -> Option<Ordering>
fn partial_cmp(&self, other: &LogLevelFilter) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 LogLevel
impl Eq for LogLevel
impl StructuralEq for LogLevel
Auto Trait Implementations
impl RefUnwindSafe for LogLevel
impl Send for LogLevel
impl Sync for LogLevel
impl Unpin for LogLevel
impl UnwindSafe for LogLevel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more