pub struct GlobalFilter { /* private fields */ }Expand description
GlobalFilter use static reference to AtomicU8 to avoid cloning cost of Arc<LogFilter>
Implementations§
Trait Implementations§
Source§impl Clone for GlobalFilter
impl Clone for GlobalFilter
Source§fn clone(&self) -> GlobalFilter
fn clone(&self) -> GlobalFilter
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 Filter for GlobalFilter
impl Filter for GlobalFilter
Source§fn is_enabled(&self, level: Level) -> bool
fn is_enabled(&self, level: Level) -> bool
whether a log level is enable
Auto Trait Implementations§
impl Freeze for GlobalFilter
impl RefUnwindSafe for GlobalFilter
impl Send for GlobalFilter
impl Sync for GlobalFilter
impl Unpin for GlobalFilter
impl UnsafeUnpin for GlobalFilter
impl UnwindSafe for GlobalFilter
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