pub struct ErrorLoggerBuilder { /* private fields */ }
Expand description
Builder for creating a custom error logger
Implementations§
Source§impl ErrorLoggerBuilder
impl ErrorLoggerBuilder
Sourcepub fn with_error_fn<F>(self, f: F) -> Self
pub fn with_error_fn<F>(self, f: F) -> Self
Set the function to use for logging errors
Sourcepub fn with_message_fn<F>(self, f: F) -> Self
pub fn with_message_fn<F>(self, f: F) -> Self
Set the function to use for logging messages
Sourcepub fn with_panic_fn<F>(self, f: F) -> Self
pub fn with_panic_fn<F>(self, f: F) -> Self
Set the function to use for logging panics
Sourcepub fn build(self) -> CustomErrorLogger
pub fn build(self) -> CustomErrorLogger
Build the error logger
Trait Implementations§
Source§impl Default for ErrorLoggerBuilder
impl Default for ErrorLoggerBuilder
Source§fn default() -> ErrorLoggerBuilder
fn default() -> ErrorLoggerBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ErrorLoggerBuilder
impl !RefUnwindSafe for ErrorLoggerBuilder
impl Send for ErrorLoggerBuilder
impl Sync for ErrorLoggerBuilder
impl Unpin for ErrorLoggerBuilder
impl !UnwindSafe for ErrorLoggerBuilder
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