pub struct BaseHandler { /* private fields */ }
Expand description
Base handler implementation
Implementations§
Trait Implementations§
Source§impl Debug for BaseHandler
impl Debug for BaseHandler
Source§impl Handler for BaseHandler
impl Handler for BaseHandler
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 BaseHandler
impl !RefUnwindSafe for BaseHandler
impl Send for BaseHandler
impl Sync for BaseHandler
impl Unpin for BaseHandler
impl !UnwindSafe for BaseHandler
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