#[non_exhaustive]pub enum ErrorLevel {
Debug,
Info,
Warning,
Error,
Critical,
}Expand description
Error severity level passed to a registered hook callback.
Marked #[non_exhaustive] so future minor releases can add new
severity variants (e.g. Notice, Trace) without breaking
existing match statements.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Debug
Debug-level errors (for detailed debugging)
Info
Information-level errors (least severe)
Warning
Warning-level errors (moderate severity)
Error
Error-level errors (high severity)
Critical
Critical-level errors (most severe)
Trait Implementations§
Source§impl Clone for ErrorLevel
impl Clone for ErrorLevel
Source§fn clone(&self) -> ErrorLevel
fn clone(&self) -> ErrorLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ErrorLevel
impl Debug for ErrorLevel
Source§impl PartialEq for ErrorLevel
impl PartialEq for ErrorLevel
Source§fn eq(&self, other: &ErrorLevel) -> bool
fn eq(&self, other: &ErrorLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ErrorLevel
impl Eq for ErrorLevel
impl StructuralPartialEq for ErrorLevel
Auto Trait Implementations§
impl Freeze for ErrorLevel
impl RefUnwindSafe for ErrorLevel
impl Send for ErrorLevel
impl Sync for ErrorLevel
impl Unpin for ErrorLevel
impl UnsafeUnpin for ErrorLevel
impl UnwindSafe for ErrorLevel
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