pub enum InstrumentationError {
SystemBreakImportAlreadyExists,
StackLimitInjection,
GasGlobalAlreadyExists,
CostCalculationOverflow,
InstructionCostNotFound,
GasInjection,
}
Expand description
WASM module instrumentation error.
Variants§
SystemBreakImportAlreadyExists
Error occurred during injecting gr_system_break
import.
StackLimitInjection
Error occurred during stack height instrumentation.
GasGlobalAlreadyExists
Error occurred during injecting gear_gas
global.
CostCalculationOverflow
Error occurred during calculating the cost of the gas_charge
function.
InstructionCostNotFound
Error occurred while trying to get the instruction cost.
GasInjection
Error occurred during injecting gas metering instructions.
This might be due to program contained unsupported/non-deterministic instructions (floats, memory grow, etc.).
Trait Implementations§
Source§impl Debug for InstrumentationError
impl Debug for InstrumentationError
Source§impl Display for InstrumentationError
impl Display for InstrumentationError
Source§impl PartialEq for InstrumentationError
impl PartialEq for InstrumentationError
impl Eq for InstrumentationError
impl StructuralPartialEq for InstrumentationError
Auto Trait Implementations§
impl Freeze for InstrumentationError
impl RefUnwindSafe for InstrumentationError
impl Send for InstrumentationError
impl Sync for InstrumentationError
impl Unpin for InstrumentationError
impl UnwindSafe for InstrumentationError
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