pub struct Fault<'a, Env, ReturnType>where
Env: Environment,{
pub kind: FaultOrPause<'a, Env, ReturnType>,
pub stack: Vec<FaultStackFrame>,
}
Expand description
An unexpected event occurred while executing the virtual machine.
Fields§
§kind: FaultOrPause<'a, Env, ReturnType>
The kind of fault this is.
stack: Vec<FaultStackFrame>
The stack trace of the virtual machine when the fault was raised.
Trait Implementations§
source§impl<Env, ReturnType> Clone for Fault<'static, Env, ReturnType>where
Env: Environment,
impl<Env, ReturnType> Clone for Fault<'static, Env, ReturnType>where Env: Environment,
source§impl<'a, Env, ReturnType: Debug> Debug for Fault<'a, Env, ReturnType>where
Env: Environment + Debug,
impl<'a, Env, ReturnType: Debug> Debug for Fault<'a, Env, ReturnType>where Env: Environment + Debug,
source§impl<'a, Env, ReturnType> Display for Fault<'a, Env, ReturnType>where
Env: Environment,
impl<'a, Env, ReturnType> Display for Fault<'a, Env, ReturnType>where Env: Environment,
source§impl<'a, Env, ReturnType> Error for Fault<'a, Env, ReturnType>where
Env: Debug + Environment,
ReturnType: Debug,
impl<'a, Env, ReturnType> Error for Fault<'a, Env, ReturnType>where Env: Debug + Environment, ReturnType: Debug,
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()