[−][src]Enum runestick::VmErrorKind
The kind of error encountered.
Variants
The virtual machine panicked for a specific reason.
Fields of Panic
reason: Panic
The reason for the panic.
The virtual machine stopped for an unexpected reason.
Fields of Stopped
reason: StopReason
The reason why the virtual machine stopped.
A vm error that was propagated from somewhere else.
In order to represent this, we need to preserve the instruction pointer and eventually unit from where the error happened.
Fields of UnwindedVmError
kind: Box<VmErrorKind>
The actual error.
ip: usize
The instruction pointer of where the original error happened.
Error raised when external format function results in error.
Error raised when interacting with the stack.
Fields of StackError
error: StackError
The source error.
Trying to access an inaccessible reference.
Fields of AccessError
error: AccessError
Source error.
Error raised when trying to access a value.
Fields of ValueError
error: ValueError
Source error.
The virtual machine encountered a numerical overflow.
The virtual machine encountered a numerical underflow.
The virtual machine encountered a divide-by-zero.
Failure to lookup function.
Fields of MissingFunction
hash: Hash
Hash of function to look up.
Failure to lookup instance function.
Fields of MissingInstanceFunction
instance: ValueTypeInfo
The instance type we tried to look up function on.
hash: Hash
Hash of function to look up.
Instruction pointer went out-of-bounds.
Tried to await something on the stack which can't be await:ed.
Fields of UnsupportedAwait
actual: ValueTypeInfo
The actual target.
A bad argument that was received to a function.
Fields of BadArgument
argument: ValueTypeInfo
The argument type.
Unsupported binary operation.
Fields of UnsupportedBinaryOperation
op: &'static str
Operation.
lhs: ValueTypeInfo
Left-hand side operator.
rhs: ValueTypeInfo
Right-hand side operator.
Unsupported unary operation.
Fields of UnsupportedUnaryOperation
Protocol not implemented on type.
Fields of MissingProtocol
Indicates that a static string is missing for the given slot.
Fields of MissingStaticString
slot: usize
Slot which is missing a static string.
Indicates that a static object keys is missing for the given slot.
Fields of MissingStaticObjectKeys
slot: usize
Slot which is missing a static object keys.
Indicates a failure to convert from one type to another.
Fields of StackConversionError
Failure to convert from one type to another.
Fields of ArgumentConversionError
error: ValueError
The underlying stack error.
arg: usize
The argument location that was converted.
to: &'static str
The native type we attempt to convert to.
Wrong number of arguments provided in call.
Fields of ArgumentCountMismatch
Failure to convert return value.
Fields of ReturnConversionError
error: ValueError
Error describing the failed conversion.
ret: &'static str
Type of the return value we attempted to convert.
An index set operation that is not supported.
Fields of UnsupportedIndexSet
target: ValueTypeInfo
The target type to set.
index: ValueTypeInfo
The index to set.
value: ValueTypeInfo
The value to set.
An index get operation that is not supported.
Fields of UnsupportedIndexGet
An tuple index get operation that is not supported.
Fields of UnsupportedTupleIndexGet
target: ValueTypeInfo
The target type we tried to perform the tuple indexing on.
An tuple index set operation that is not supported.
Fields of UnsupportedTupleIndexSet
target: ValueTypeInfo
The target type we tried to perform the tuple indexing on.
An object slot index get operation that is not supported.
Fields of UnsupportedObjectSlotIndexGet
target: ValueTypeInfo
The target type we tried to perform the object indexing on.
An is operation is not supported.
Fields of UnsupportedIs
value: ValueTypeInfo
The argument that is not supported.
test_type: ValueTypeInfo
The type that is not supported.
Encountered a value that could not be called as a function
Fields of UnsupportedCallFn
actual_type: ValueTypeInfo
The type that could not be called.
Tried to fetch an index in an object that doesn't exist.
Fields of ObjectIndexMissing
slot: usize
The static string slot corresponding to the index that is missing.
Tried to access an index that was missing on a type.
Fields of MissingIndex
Missing a struct field.
Fields of MissingField
Error raised when we try to unwrap something that is not an option or result.
Fields of UnsupportedUnwrap
actual: ValueTypeInfo
The actual operand.
Error raised when we try to unwrap an Option that is not Some.
Error raised when we try to unwrap a Result that is not Ok.
Fields of UnsupportedUnwrapErr
err: ValueTypeInfo
The error variant.
Value is not supported for is-value
test.
Fields of UnsupportedIsValueOperand
actual: ValueTypeInfo
The actual operand.
Trying to resume a generator that has completed.
Implementations
impl VmErrorKind
[src]
pub fn from_unwinded_ref(&self) -> (&Self, Option<usize>)
[src]
Unpack an unwinded error, if it is present.
Trait Implementations
impl Debug for VmErrorKind
[src]
impl Display for VmErrorKind
[src]
impl Error for VmErrorKind
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<AccessError> for VmErrorKind
[src]
fn from(source: AccessError) -> Self
[src]
impl From<StackError> for VmErrorKind
[src]
fn from(source: StackError) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for VmErrorKind
impl Send for VmErrorKind
impl Sync for VmErrorKind
impl Unpin for VmErrorKind
impl !UnwindSafe for VmErrorKind
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,