pub enum CallError<UserError = Infallible> {
Trap,
NotEnoughGas,
Error(Error),
User(UserError),
Step,
}Variants§
Trap
The execution finished abnormally with a trap.
NotEnoughGas
The execution ran out of gas.
Error(Error)
The execution failed.
User(UserError)
The execution failed with a custom user error.
Step
The execution stepped through one instruction.
Requires execution step-tracing to be enabled with ModuleConfig::set_step_tracing, otherwise is never emitted.
Trait Implementations§
Auto Trait Implementations§
impl<UserError> Freeze for CallError<UserError>where
UserError: Freeze,
impl<UserError> RefUnwindSafe for CallError<UserError>where
UserError: RefUnwindSafe,
impl<UserError> Send for CallError<UserError>where
UserError: Send,
impl<UserError> Sync for CallError<UserError>where
UserError: Sync,
impl<UserError> Unpin for CallError<UserError>where
UserError: Unpin,
impl<UserError> UnwindSafe for CallError<UserError>where
UserError: 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