Enum astral::thirdparty::slog::FilterLevel
pub enum FilterLevel {
Off,
Critical,
Error,
Warning,
Info,
Debug,
Trace,
}
Expand description
Logging filtering level
Variants
Off
Log nothing
Critical
Log critical level only
Error
Log only error level and above
Warning
Log only warning level and above
Info
Log only info level and above
Debug
Log only debug level and above
Trace
Log everything
Implementations
impl FilterLevel
impl FilterLevel
pub fn as_short_str(&self) -> &'static str
pub fn as_short_str(&self) -> &'static str
Convert to str
from LOG_LEVEL_SHORT_NAMES
pub fn from_usize(u: usize) -> Option<FilterLevel>
pub fn from_usize(u: usize) -> Option<FilterLevel>
Get a FilterLevel
from an usize
This complements as_usize
pub fn max() -> FilterLevel
pub fn max() -> FilterLevel
Maximum logging level (log everything)
pub fn min() -> FilterLevel
pub fn min() -> FilterLevel
Minimum logging level (log nothing)
Trait Implementations
impl Clone for FilterLevel
impl Clone for FilterLevel
fn clone(&self) -> FilterLevel
fn clone(&self) -> FilterLevel
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Debug for FilterLevel
impl Debug for FilterLevel
impl Display for FilterLevel
impl Display for FilterLevel
impl FromStr for FilterLevel
impl FromStr for FilterLevel
impl Ord for FilterLevel
impl Ord for FilterLevel
fn cmp(&self, other: &FilterLevel) -> Ordering
fn cmp(&self, other: &FilterLevel) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
impl PartialEq<FilterLevel> for FilterLevel
impl PartialEq<FilterLevel> for FilterLevel
fn eq(&self, other: &FilterLevel) -> bool
fn eq(&self, other: &FilterLevel) -> bool
impl PartialOrd<FilterLevel> for FilterLevel
impl PartialOrd<FilterLevel> for FilterLevel
fn partial_cmp(&self, other: &FilterLevel) -> Option<Ordering>
fn partial_cmp(&self, other: &FilterLevel) -> Option<Ordering>
1.0.0 · sourcefn 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 FilterLevel
impl Eq for FilterLevel
impl StructuralEq for FilterLevel
impl StructuralPartialEq for FilterLevel
Auto Trait Implementations
impl RefUnwindSafe for FilterLevel
impl Send for FilterLevel
impl Sync for FilterLevel
impl Unpin for FilterLevel
impl UnwindSafe for FilterLevel
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