Enum cli_log::LevelFilter [−][src]
#[repr(usize)] pub enum LevelFilter { Off, Error, Warn, Info, Debug, Trace, }
Expand description
An enum representing the available verbosity level filters of the logger.
A LevelFilter
may be compared directly to a Level
. Use this type
to get and set the maximum log level with max_level()
and set_max_level
.
Variants
A level lower than all log levels.
Corresponds to the Error
log level.
Corresponds to the Warn
log level.
Corresponds to the Info
log level.
Corresponds to the Debug
log level.
Corresponds to the Trace
log level.
Implementations
impl LevelFilter
[src]
impl LevelFilter
[src]Trait Implementations
impl Clone for LevelFilter
[src]
impl Clone for LevelFilter
[src]pub fn clone(&self) -> LevelFilter
[src]
pub fn clone(&self) -> LevelFilter
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for LevelFilter
[src]
impl Debug for LevelFilter
[src]impl Display for LevelFilter
[src]
impl Display for LevelFilter
[src]impl FromStr for LevelFilter
[src]
impl FromStr for LevelFilter
[src]type Err = ParseLevelError
type Err = ParseLevelError
The associated error which can be returned from parsing.
pub fn from_str(
level: &str
) -> Result<LevelFilter, <LevelFilter as FromStr>::Err>
[src]
pub fn from_str(
level: &str
) -> Result<LevelFilter, <LevelFilter as FromStr>::Err>
[src]Parses a string s
to return a value of this type. Read more
impl Hash for LevelFilter
[src]
impl Hash for LevelFilter
[src]impl Ord for LevelFilter
[src]
impl Ord for LevelFilter
[src]impl PartialEq<Level> for LevelFilter
[src]
impl PartialEq<Level> for LevelFilter
[src]impl PartialEq<LevelFilter> for LevelFilter
[src]
impl PartialEq<LevelFilter> 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<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 PartialOrd<LevelFilter> for LevelFilter
[src]
impl PartialOrd<LevelFilter> for LevelFilter
[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 LevelFilter
[src]
impl Eq for LevelFilter
[src]
impl StructuralEq for LevelFilter
[src]
Auto Trait Implementations
impl RefUnwindSafe for LevelFilter
impl Send for LevelFilter
impl Sync for LevelFilter
impl Unpin for LevelFilter
impl UnwindSafe for LevelFilter
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