pub struct PanicErrorHandler;
Expand description
An error handler that panics immediately, instead of returning a Result
.
Trait Implementations§
Source§impl Clone for PanicErrorHandler
impl Clone for PanicErrorHandler
Source§fn clone(&self) -> PanicErrorHandler
fn clone(&self) -> PanicErrorHandler
Returns a copy 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 DecodeErrorHandler for PanicErrorHandler
impl DecodeErrorHandler for PanicErrorHandler
type HandledErr = Infallible
fn handle_error(&self, err: DecodeError) -> Self::HandledErr
Source§impl EncodeErrorHandler for PanicErrorHandler
impl EncodeErrorHandler for PanicErrorHandler
type HandledErr = Infallible
fn handle_error(&self, err: EncodeError) -> Self::HandledErr
impl Copy for PanicErrorHandler
Auto Trait Implementations§
impl Freeze for PanicErrorHandler
impl RefUnwindSafe for PanicErrorHandler
impl Send for PanicErrorHandler
impl Sync for PanicErrorHandler
impl Unpin for PanicErrorHandler
impl UnwindSafe for PanicErrorHandler
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