pub enum RuntimeError {
Pending,
BrokenReference,
StepError(Box<str>),
DetailedError(Box<str>),
InvalidType(Box<str>),
InvalidOperation(Box<str>),
CustomValue(Box<OnionStaticObject>),
BorrowError(Box<str>),
}
Expand description
虚拟机运行时错误类型。
用于描述调度和执行过程中可能出现的各种错误。
Variants§
Pending
当前指令需要重复检查直到条件满足(如异步等待)
BrokenReference
引用失效或悬空
StepError(Box<str>)
步骤执行错误,带详细信息
DetailedError(Box<str>)
详细错误信息
InvalidType(Box<str>)
类型错误
InvalidOperation(Box<str>)
非法操作
CustomValue(Box<OnionStaticObject>)
自定义错误值(可携带任意对象)
BorrowError(Box<str>)
借用相关错误
Trait Implementations§
Source§impl Clone for RuntimeError
impl Clone for RuntimeError
Source§fn clone(&self) -> RuntimeError
fn clone(&self) -> RuntimeError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RuntimeError
impl Debug for RuntimeError
Auto Trait Implementations§
impl Freeze for RuntimeError
impl !RefUnwindSafe for RuntimeError
impl Send for RuntimeError
impl Sync for RuntimeError
impl Unpin for RuntimeError
impl !UnwindSafe for RuntimeError
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