pub enum ExecutionErrorPayload {
Show 18 variants
CallStackOverflow,
UnexpectedEndOfInput,
ExitCode(i32),
InvalidInstruction(u8),
InvalidArgument {
context: Option<String>,
},
VarNotFound(String),
ProcedureNotFound(Handle),
Unimplemented,
OutOfMemory,
MissingArgument,
Timeout,
TaskFailure {
name: String,
error: Box<ExecutionErrorPayload>,
},
Stackoverflow,
BadReturn {
reason: String,
},
Unhashable,
AssertionError(String),
InvalidUpvalue,
NotClosure,
}Variants§
CallStackOverflow
UnexpectedEndOfInput
ExitCode(i32)
InvalidInstruction(u8)
InvalidArgument
VarNotFound(String)
ProcedureNotFound(Handle)
Unimplemented
OutOfMemory
MissingArgument
Timeout
TaskFailure
Stackoverflow
BadReturn
Unhashable
AssertionError(String)
InvalidUpvalue
NotClosure
Implementations§
Source§impl ExecutionErrorPayload
impl ExecutionErrorPayload
pub fn invalid_argument<S>(reason: S) -> Self
Trait Implementations§
Source§impl Clone for ExecutionErrorPayload
impl Clone for ExecutionErrorPayload
Source§fn clone(&self) -> ExecutionErrorPayload
fn clone(&self) -> ExecutionErrorPayload
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 ExecutionErrorPayload
impl Debug for ExecutionErrorPayload
Source§impl Display for ExecutionErrorPayload
impl Display for ExecutionErrorPayload
Source§impl Error for ExecutionErrorPayload
impl Error for ExecutionErrorPayload
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()
Auto Trait Implementations§
impl Freeze for ExecutionErrorPayload
impl RefUnwindSafe for ExecutionErrorPayload
impl Send for ExecutionErrorPayload
impl Sync for ExecutionErrorPayload
impl Unpin for ExecutionErrorPayload
impl UnwindSafe for ExecutionErrorPayload
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