[−][src]Enum runestick::VmErrorKind
The kind of error encountered.
Variants
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 Unwound
kind: Box<VmErrorKind>
The wrapper error.
unit: Arc<Unit>
Associated unit.
ip: usize
The instruction pointer of where the original error happened.
Fields of AccessError
error: AccessError
Fields of Panic
reason: Panic
Fields of Halted
halt: VmHaltInfo
Fields of StackError
error: StackError
Fields of MissingConst
hash: Hash
Fields of MissingFunction
hash: Hash
Fields of UnsupportedAwait
actual: TypeInfo
Fields of MissingStaticString
slot: usize
Fields of MissingStaticObjectKeys
slot: usize
Fields of MissingVariantRtti
hash: Hash
Fields of MissingRtti
hash: Hash
Fields of BadReturn
error: VmError
Fields of UnsupportedTupleIndexGet
target: TypeInfo
Fields of UnsupportedTupleIndexSet
target: TypeInfo
Fields of UnsupportedObjectSlotIndexGet
target: TypeInfo
Fields of UnsupportedCallFn
actual_type: TypeInfo
Fields of ObjectIndexMissing
slot: usize
Fields of MissingIndex
target: TypeInfo
index: VmIntegerRepr
Fields of UnsupportedUnwrap
actual: TypeInfo
Fields of UnsupportedUnwrapErr
err: TypeInfo
Fields of UnsupportedIsValueOperand
actual: TypeInfo
Trying to resume a generator that has completed.
Fields of ExpectedAny
actual: TypeInfo
Fields of ValueToIntegerCoercionError
from: VmIntegerRepr
to: &'static str
Fields of IntegerToValueCoercionError
from: VmIntegerRepr
to: &'static str
Fields of ExpectedVariant
actual: TypeInfo
Fields of ConstNotSupported
actual: TypeInfo
Implementations
impl VmErrorKind
[src]
pub fn as_unwound_ref(&self) -> (&Self, Option<(Arc<Unit>, usize)>)
[src]
Unpack an unwound 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>,