Enum sozu_command_lib::logging::LogLevelFilter
source · [−]#[repr(usize)]
pub enum LogLevelFilter {
Off,
Error,
Warn,
Info,
Debug,
Trace,
}
Variants
Off
Error
Warn
Info
Debug
Trace
Implementations
sourceimpl LogLevelFilter
impl LogLevelFilter
sourcepub fn max() -> LogLevelFilter
pub fn max() -> LogLevelFilter
Returns the most verbose logging level filter.
sourcepub fn to_log_level(self) -> Option<LogLevel>
pub fn to_log_level(self) -> Option<LogLevel>
Converts self
to the equivalent LogLevel
.
Returns None
if self
is LogLevelFilter::Off
.
Trait Implementations
sourceimpl Clone for LogLevelFilter
impl Clone for LogLevelFilter
sourcefn clone(&self) -> LogLevelFilter
fn clone(&self) -> LogLevelFilter
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for LogLevelFilter
impl Debug for LogLevelFilter
sourceimpl FromStr for LogLevelFilter
impl FromStr for LogLevelFilter
sourceimpl Ord for LogLevelFilter
impl Ord for LogLevelFilter
sourcefn cmp(&self, other: &LogLevelFilter) -> Ordering
fn cmp(&self, other: &LogLevelFilter) -> Ordering
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 PartialEq<LogLevelFilter> for LogLevelFilter
impl PartialEq<LogLevelFilter> for LogLevelFilter
sourcefn eq(&self, other: &LogLevelFilter) -> bool
fn eq(&self, other: &LogLevelFilter) -> bool
sourceimpl 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 moresourceimpl PartialOrd<LogLevelFilter> for LogLevelFilter
impl PartialOrd<LogLevelFilter> for LogLevelFilter
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 LogLevelFilter
impl Eq for LogLevelFilter
impl StructuralEq for LogLevelFilter
Auto Trait Implementations
impl RefUnwindSafe for LogLevelFilter
impl Send for LogLevelFilter
impl Sync for LogLevelFilter
impl Unpin for LogLevelFilter
impl UnwindSafe for LogLevelFilter
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