Enum cli_log::Level [−][src]
#[repr(usize)] pub enum Level { Error, Warn, Info, Debug, Trace, }
Expand description
An enum representing the available verbosity levels of the logger.
Typical usage includes: checking if a certain Level
is enabled with
log_enabled!
, specifying the Level
of
log!
, and comparing a Level
directly to a
LevelFilter
.
Variants
The “error” level.
Designates very serious errors.
The “warn” level.
Designates hazardous situations.
The “info” level.
Designates useful information.
The “debug” level.
Designates lower priority information.
The “trace” level.
Designates very low priority, often extremely verbose, information.
Implementations
impl Level
[src]
impl Level
[src]pub fn to_level_filter(&self) -> LevelFilter
[src]
pub fn to_level_filter(&self) -> LevelFilter
[src]Converts the Level
to the equivalent LevelFilter
.
Trait Implementations
impl Ord for Level
[src]
impl Ord for Level
[src]impl PartialEq<Level> for LevelFilter
[src]
impl PartialEq<Level> for LevelFilter
[src]impl PartialEq<LevelFilter> for Level
[src]
impl PartialEq<LevelFilter> for Level
[src]impl PartialOrd<Level> for LevelFilter
[src]
impl PartialOrd<Level> for LevelFilter
[src]pub fn partial_cmp(&self, other: &Level) -> Option<Ordering>
[src]
pub fn partial_cmp(&self, other: &Level) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
pub fn lt(&self, other: &Level) -> bool
[src]
pub fn lt(&self, other: &Level) -> bool
[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
pub fn le(&self, other: &Level) -> bool
[src]
pub fn le(&self, other: &Level) -> bool
[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl PartialOrd<Level> for Level
[src]
impl PartialOrd<Level> for Level
[src]pub fn partial_cmp(&self, other: &Level) -> Option<Ordering>
[src]
pub fn partial_cmp(&self, other: &Level) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
pub fn lt(&self, other: &Level) -> bool
[src]
pub fn lt(&self, other: &Level) -> bool
[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
pub fn le(&self, other: &Level) -> bool
[src]
pub fn le(&self, other: &Level) -> bool
[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl PartialOrd<LevelFilter> for Level
[src]
impl PartialOrd<LevelFilter> for Level
[src]pub fn partial_cmp(&self, other: &LevelFilter) -> Option<Ordering>
[src]
pub fn partial_cmp(&self, other: &LevelFilter) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
pub fn lt(&self, other: &LevelFilter) -> bool
[src]
pub fn lt(&self, other: &LevelFilter) -> bool
[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
pub fn le(&self, other: &LevelFilter) -> bool
[src]
pub fn le(&self, other: &LevelFilter) -> bool
[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
pub fn gt(&self, other: &LevelFilter) -> bool
[src]
pub fn gt(&self, other: &LevelFilter) -> bool
[src]This method tests greater than (for self
and other
) and is used by the >
operator. Read more
pub fn ge(&self, other: &LevelFilter) -> bool
[src]
pub fn ge(&self, other: &LevelFilter) -> bool
[src]This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Copy for Level
[src]
impl Eq for Level
[src]
impl StructuralEq for Level
[src]
Auto Trait Implementations
impl RefUnwindSafe for Level
impl Send for Level
impl Sync for Level
impl Unpin for Level
impl UnwindSafe for Level
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more