Enum sozu_command_lib::logging::LogLevelFilter
source · #[repr(usize)]pub enum LogLevelFilter {
Off = 0,
Error = 1,
Warn = 2,
Info = 3,
Debug = 4,
Trace = 5,
}
Variants§
Implementations§
source§impl 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§
source§impl Clone for LogLevelFilter
impl Clone for LogLevelFilter
source§fn clone(&self) -> LogLevelFilter
fn clone(&self) -> LogLevelFilter
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 LogLevelFilter
impl Debug for LogLevelFilter
source§impl FromStr for LogLevelFilter
impl FromStr for LogLevelFilter
source§impl Ord for LogLevelFilter
impl Ord for LogLevelFilter
source§fn cmp(&self, other: &LogLevelFilter) -> Ordering
fn cmp(&self, other: &LogLevelFilter) -> 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<LogLevel> for LogLevelFilter
impl PartialEq<LogLevel> for LogLevelFilter
source§impl PartialEq<LogLevelFilter> for LogLevel
impl PartialEq<LogLevelFilter> for LogLevel
source§fn eq(&self, other: &LogLevelFilter) -> bool
fn eq(&self, other: &LogLevelFilter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for LogLevelFilter
impl PartialEq for LogLevelFilter
source§fn eq(&self, other: &LogLevelFilter) -> bool
fn eq(&self, other: &LogLevelFilter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<LogLevel> for LogLevelFilter
impl PartialOrd<LogLevel> for LogLevelFilter
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 moresource§impl PartialOrd<LogLevelFilter> for LogLevel
impl PartialOrd<LogLevelFilter> for LogLevel
source§fn partial_cmp(&self, other: &LogLevelFilter) -> Option<Ordering>
fn partial_cmp(&self, other: &LogLevelFilter) -> 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 moresource§impl PartialOrd for LogLevelFilter
impl PartialOrd for LogLevelFilter
source§fn partial_cmp(&self, other: &LogLevelFilter) -> Option<Ordering>
fn partial_cmp(&self, other: &LogLevelFilter) -> 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 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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.