pub struct NullHandler { /* private fields */ }
Expand description
A handler that does nothing
Implementations§
Trait Implementations§
Source§impl Debug for NullHandler
impl Debug for NullHandler
Source§impl Default for NullHandler
impl Default for NullHandler
Source§impl Handler for NullHandler
impl Handler for NullHandler
Source§fn is_enabled(&self) -> bool
fn is_enabled(&self) -> bool
Check if the handler is enabled
Source§fn set_enabled(&mut self, enabled: bool)
fn set_enabled(&mut self, enabled: bool)
Set whether the handler is enabled
Source§fn set_formatter(&mut self, formatter: Formatter)
fn set_formatter(&mut self, formatter: Formatter)
Set the formatter
Source§fn set_filter(&mut self, filter: Option<HandlerFilter>)
fn set_filter(&mut self, filter: Option<HandlerFilter>)
Set a filter closure for this handler (optional, default: no filter)
Source§fn filter(&self) -> Option<&HandlerFilter>
fn filter(&self) -> Option<&HandlerFilter>
Get the filter closure for this handler (optional)
Source§fn handle_batch(&self, records: &[Record]) -> Result<(), HandlerError>
fn handle_batch(&self, records: &[Record]) -> Result<(), HandlerError>
Handle a batch of log records (optimized implementation)
Auto Trait Implementations§
impl Freeze for NullHandler
impl !RefUnwindSafe for NullHandler
impl Send for NullHandler
impl Sync for NullHandler
impl Unpin for NullHandler
impl !UnwindSafe for NullHandler
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