pub struct ErrorHandler(/* private fields */);
Expand description
Represents an error handler.
In most cases, it can be constructed by just a .into()
.
Call ErrorHandler::default
to construct an empty error handler, when an
error is triggered, a built-in fallback handler will be used which prints
the error to stderr
.
Implementations§
Trait Implementations§
Source§impl Clone for ErrorHandler
impl Clone for ErrorHandler
Source§fn clone(&self) -> ErrorHandler
fn clone(&self) -> ErrorHandler
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ErrorHandler
impl Debug for ErrorHandler
Source§impl Default for ErrorHandler
impl Default for ErrorHandler
Auto Trait Implementations§
impl Freeze for ErrorHandler
impl !RefUnwindSafe for ErrorHandler
impl Send for ErrorHandler
impl Sync for ErrorHandler
impl Unpin for ErrorHandler
impl !UnwindSafe for ErrorHandler
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