pub struct PanickingErrorApiImpl;
Expand description
An error handler that simply panics whenever signal_error
is called.
Especially useful for unit tests.
Implements ErrorApi
.
Trait Implementations§
Source§impl ErrorApiImpl for PanickingErrorApiImpl
impl ErrorApiImpl for PanickingErrorApiImpl
fn signal_error(&self, message: &[u8]) -> !
fn signal_error_from_buffer( &self, _message_handle: Self::ManagedBufferHandle, ) -> !
Source§impl HandleTypeInfo for PanickingErrorApiImpl
impl HandleTypeInfo for PanickingErrorApiImpl
type ManagedBufferHandle = i32
type BigIntHandle = i32
type BigFloatHandle = i32
type EllipticCurveHandle = i32
type ManagedMapHandle = i32
Auto Trait Implementations§
impl Freeze for PanickingErrorApiImpl
impl RefUnwindSafe for PanickingErrorApiImpl
impl Send for PanickingErrorApiImpl
impl Sync for PanickingErrorApiImpl
impl Unpin for PanickingErrorApiImpl
impl UnwindSafe for PanickingErrorApiImpl
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