pub enum ProgramError<E> {
OpsFromBytesError(FromBytesError),
ParentStackConcatOverflow(StackError),
ParentMemoryConcatOverflow(MemoryError),
Vm(ExecError<E>),
}
Expand description
An error occurring during a program task.
Variants§
OpsFromBytesError(FromBytesError)
Failed to parse ops from bytecode during bytecode mapping.
ParentStackConcatOverflow(StackError)
Concatenating the parent program Stack
s caused an overflow.
ParentMemoryConcatOverflow(MemoryError)
Concatenating the parent program Memory
slices caused an overflow.
Vm(ExecError<E>)
VM execution resulted in an error.
Trait Implementations§
Source§impl<E: Debug> Debug for ProgramError<E>
impl<E: Debug> Debug for ProgramError<E>
Source§impl<E> Display for ProgramError<E>
impl<E> Display for ProgramError<E>
Source§impl<E> Error for ProgramError<E>
impl<E> Error for ProgramError<E>
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()
Source§impl<E> From<ExecError<E>> for ProgramError<E>
impl<E> From<ExecError<E>> for ProgramError<E>
Source§impl<E> From<FromBytesError> for ProgramError<E>
impl<E> From<FromBytesError> for ProgramError<E>
Source§fn from(source: FromBytesError) -> Self
fn from(source: FromBytesError) -> Self
Converts to this type from the input type.
Source§impl<E> From<MemoryError> for ProgramError<E>
impl<E> From<MemoryError> for ProgramError<E>
Source§fn from(source: MemoryError) -> Self
fn from(source: MemoryError) -> Self
Converts to this type from the input type.
Source§impl<E> From<StackError> for ProgramError<E>
impl<E> From<StackError> for ProgramError<E>
Source§fn from(source: StackError) -> Self
fn from(source: StackError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for ProgramError<E>where
E: Freeze,
impl<E> !RefUnwindSafe for ProgramError<E>
impl<E> Send for ProgramError<E>where
E: Send,
impl<E> Sync for ProgramError<E>where
E: Sync,
impl<E> Unpin for ProgramError<E>where
E: Unpin,
impl<E> !UnwindSafe for ProgramError<E>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more