pub enum VmError {
Runtime(RuntimeError),
Thrown(ObjId),
Unimplemented(String),
Suspend,
}Expand description
Why execution stopped.
Variants§
Runtime(RuntimeError)
The VM raised an error. Inside a running program this becomes a
RuntimeError exception the program can catch.
Thrown(ObjId)
An exception object is propagating out of byte code.
Unimplemented(String)
The program used a part of the VM that Hexicon does not have yet. Programs cannot catch this.
Suspend
The host has no input yet, so the program has to stop where it is until it does. This is how the instruction that asked finds its way out of the interpreter; it never reaches a program or a host.
Implementations§
Trait Implementations§
impl Eq for VmError
Source§impl Error for VmError
impl Error for VmError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + '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()
impl StructuralPartialEq for VmError
Auto Trait Implementations§
impl Forget for VmError
impl Freeze for VmError
impl Move for VmError
impl RefUnwindSafe for VmError
impl Send for VmErrorwhere
RawVecInner: Send,
impl Sync for VmErrorwhere
RawVecInner: Sync,
impl Unpin for VmError
impl UnsafeUnpin for VmErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<ErrParam>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for VmErrorwhere
RawVecInner: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.