pub enum VerbosityLevel {
Quiet,
Normal,
Verbose,
Debug,
}Available on crate feature
core only.Variants§
Implementations§
Source§impl VerbosityLevel
impl VerbosityLevel
pub const fn from_environment(env: Environment) -> VerbosityLevel
pub fn from_env_var() -> Option<VerbosityLevel>
pub fn resolve() -> VerbosityLevel
pub const fn is_quiet(&self) -> bool
pub const fn is_verbose(&self) -> bool
pub const fn should_show_verbose(&self) -> bool
pub const fn should_log_to_db(&self) -> bool
Trait Implementations§
Source§impl Clone for VerbosityLevel
impl Clone for VerbosityLevel
Source§fn clone(&self) -> VerbosityLevel
fn clone(&self) -> VerbosityLevel
Returns a duplicate 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 VerbosityLevel
impl Debug for VerbosityLevel
Source§impl PartialEq for VerbosityLevel
impl PartialEq for VerbosityLevel
impl Copy for VerbosityLevel
impl Eq for VerbosityLevel
impl StructuralPartialEq for VerbosityLevel
Auto Trait Implementations§
impl Freeze for VerbosityLevel
impl RefUnwindSafe for VerbosityLevel
impl Send for VerbosityLevel
impl Sync for VerbosityLevel
impl Unpin for VerbosityLevel
impl UnsafeUnpin for VerbosityLevel
impl UnwindSafe for VerbosityLevel
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.