pub struct LogLevel(/* private fields */);Expand description
Log level configuration - encapsulates a u32 mask where u32::MAX means log everything
Implementations§
Source§impl LogLevel
impl LogLevel
Sourcepub const fn make_default() -> Self
pub const fn make_default() -> Self
Create default log level configuration (ERROR and WARN only)
Sourcepub fn should_log(self, raw_debug_level: u32) -> bool
pub fn should_log(self, raw_debug_level: u32) -> bool
Checks if a raw debug level should be logged based on this log level configuration
Trait Implementations§
Source§impl DefaultEncoding for LogLevel
impl DefaultEncoding for LogLevel
Source§type Encoding = TransparentEncoding<<u32 as DefaultEncoding>::Encoding>
type Encoding = TransparentEncoding<<u32 as DefaultEncoding>::Encoding>
The encoding to use for the serialization. Read more
Source§impl Transparent for LogLevel
impl Transparent for LogLevel
impl Copy for LogLevel
impl Eq for LogLevel
impl StructuralPartialEq for LogLevel
Auto Trait Implementations§
impl Freeze for LogLevel
impl RefUnwindSafe for LogLevel
impl Send for LogLevel
impl Sync for LogLevel
impl Unpin 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