#[non_exhaustive]pub enum Level {
Trace,
Debug,
Info,
Warn,
Error,
Off,
}
Expand description
Logging levels supported by the WAF.
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.
Trace
Extremely detailed logging.
Debug
Detailed logging.
Info
Informational logging.
Warn
Log only warnings and errors.
Error
Log only errors.
Off
Do not log anything.
Trait Implementations§
Source§impl TryFrom<u32> for Level
impl TryFrom<u32> for Level
Source§type Error = UnknownLogLevelError
type Error = UnknownLogLevelError
The type returned in the event of a conversion error.
Source§fn try_from(value: DDWAF_LOG_LEVEL) -> Result<Self, UnknownLogLevelError>
fn try_from(value: DDWAF_LOG_LEVEL) -> Result<Self, UnknownLogLevelError>
Performs the conversion.
impl Copy for Level
impl Eq for Level
impl StructuralPartialEq for Level
Auto Trait Implementations§
impl Freeze for Level
impl RefUnwindSafe for Level
impl Send for Level
impl Sync for Level
impl Unpin for Level
impl UnwindSafe for Level
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