pub enum XabiCallError<E> {
Runtime(Error),
Export(E),
}Expand description
Error returned by generated host-side xabi handles.
Runtime means the local xabi runtime rejected the call, vtable, or payload.
Export means the loaded implementation returned its contract error type.
Variants§
Runtime(Error)
The xabi runtime failed before a typed export error could be decoded.
Export(E)
The implementation returned a typed error payload.
Trait Implementations§
Source§impl<E: Debug> Debug for XabiCallError<E>
impl<E: Debug> Debug for XabiCallError<E>
Source§impl<E: Display> Display for XabiCallError<E>
impl<E: Display> Display for XabiCallError<E>
Source§impl<E> Error for XabiCallError<E>where
E: StdError + 'static,
impl<E> Error for XabiCallError<E>where
E: StdError + 'static,
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl<E> Freeze for XabiCallError<E>where
E: Freeze,
impl<E> RefUnwindSafe for XabiCallError<E>where
E: RefUnwindSafe,
impl<E> Send for XabiCallError<E>where
E: Send,
impl<E> Sync for XabiCallError<E>where
E: Sync,
impl<E> Unpin for XabiCallError<E>where
E: Unpin,
impl<E> UnsafeUnpin for XabiCallError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for XabiCallError<E>where
E: UnwindSafe,
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