pub enum JsVmError {
ExecutionLimitExceeded,
UnknownOpcode {
byte: u8,
},
UncaughtException {
message: String,
},
StackOverflow,
StackUnderflow,
NoCallFrame,
IpOutOfBounds,
NotCallable,
InvalidFunctionId,
}Expand description
Errors produced by the JavaScript virtual machine
Variants§
ExecutionLimitExceeded
Execution step limit exceeded
UnknownOpcode
Unknown bytecode opcode
Fields
§
byte: u8UncaughtException
Uncaught exception from user code
Fields
§
message: StringStackOverflow
Operand stack overflow
StackUnderflow
Operand stack underflow (pop from empty stack)
NoCallFrame
No active call frame
IpOutOfBounds
Instruction pointer out of bounds
NotCallable
Attempted to call a non-callable value
InvalidFunctionId
Invalid function ID
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JsVmError
impl RefUnwindSafe for JsVmError
impl Send for JsVmError
impl Sync for JsVmError
impl Unpin for JsVmError
impl UnwindSafe for JsVmError
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)