pub enum LogLevel {
Trace,
Debug,
Info,
Warn,
Error,
None,
}Expand description
A conventional log-verbosity domain, provided because nearly every program exposes one. Projects with different level names should declare their own enum the same way.
Variants§
Trace
Maximum detail.
Debug
Developer diagnostics.
Info
Normal operational messages.
Warn
Recoverable problems.
Error
Failures only.
None
No logging at all.
Implementations§
Trait Implementations§
impl Copy for LogLevel
impl Eq for LogLevel
Source§impl Serialize for LogLevel
impl Serialize for LogLevel
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for LogLevel
Auto Trait Implementations§
impl Forget for LogLevel
impl Freeze for LogLevel
impl Move for LogLevel
impl RefUnwindSafe for LogLevel
impl Send for LogLevel
impl Sync for LogLevel
impl Unpin for LogLevel
impl UnsafeUnpin for LogLevel
impl UnwindSafe for LogLevel
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