pub enum OpError<E = Infallible> {
Show 15 variants
Access(AccessError),
Alu(AluError),
Crypto(CryptoError),
Stack(StackError),
Repeat(RepeatError),
TotalControlFlow(TotalControlFlowError),
Memory(MemoryError),
ParentMemory(ParentMemoryError),
PcOverflow,
Decode(DecodeError),
Encode(EncodeError),
StateRead(E),
Compute(ComputeError<E>),
FromBytes(FromBytesError),
OutOfGas(OutOfGasError),
}
Expand description
An individual operation failed during execution.
Variants§
Access(AccessError)
An error occurred during an Access
operation.
Alu(AluError)
An error occurred during an Alu
operation.
Crypto(CryptoError)
An error occurred during a Crypto
operation.
Stack(StackError)
An error occurred during a Stack
operation.
Repeat(RepeatError)
An error occurred during a Repeat
operation.
TotalControlFlow(TotalControlFlowError)
An error occurred during a TotalControlFlow
operation.
Memory(MemoryError)
An error occurred during a Memory
operation.
ParentMemory(ParentMemoryError)
An error occurred during a ParentMemory
operation.
PcOverflow
Pc counter overflowed.
Decode(DecodeError)
An error occurred while decoding some data.
Encode(EncodeError)
An error occurred while encoding some data.
StateRead(E)
An error occurred during a StateRead
operation.
Compute(ComputeError<E>)
An error occurred during a Compute
operation.
FromBytes(FromBytesError)
An error occurred while parsing an operation from bytes.
OutOfGas(OutOfGasError)
The total gas limit was exceeded.
Implementations§
Source§impl<E> OpError<E>
impl<E> OpError<E>
Sourcepub fn from_infallible(value: OpError<Infallible>) -> Self
pub fn from_infallible(value: OpError<Infallible>) -> Self
Convert an op error that doesn’t contain a state read a generic op error.
Trait Implementations§
Source§impl<E> Error for OpError<E>
impl<E> Error for OpError<E>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl<E> From<AccessError> for OpError<E>
impl<E> From<AccessError> for OpError<E>
Source§fn from(source: AccessError) -> Self
fn from(source: AccessError) -> Self
Source§impl<E> From<ComputeError<E>> for OpError<E>
impl<E> From<ComputeError<E>> for OpError<E>
Source§fn from(source: ComputeError<E>) -> Self
fn from(source: ComputeError<E>) -> Self
Source§impl<E> From<CryptoError> for OpError<E>
impl<E> From<CryptoError> for OpError<E>
Source§fn from(source: CryptoError) -> Self
fn from(source: CryptoError) -> Self
Source§impl<E> From<DecodeError> for OpError<E>
impl<E> From<DecodeError> for OpError<E>
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Source§impl<E> From<EncodeError> for OpError<E>
impl<E> From<EncodeError> for OpError<E>
Source§fn from(source: EncodeError) -> Self
fn from(source: EncodeError) -> Self
Source§impl<E> From<FromBytesError> for OpError<E>
impl<E> From<FromBytesError> for OpError<E>
Source§fn from(source: FromBytesError) -> Self
fn from(source: FromBytesError) -> Self
Source§impl<E> From<Infallible> for OpError<E>
impl<E> From<Infallible> for OpError<E>
Source§fn from(err: Infallible) -> Self
fn from(err: Infallible) -> Self
Source§impl<E> From<MemoryError> for OpError<E>
impl<E> From<MemoryError> for OpError<E>
Source§fn from(source: MemoryError) -> Self
fn from(source: MemoryError) -> Self
Source§impl<E> From<OutOfGasError> for OpError<E>
impl<E> From<OutOfGasError> for OpError<E>
Source§fn from(source: OutOfGasError) -> Self
fn from(source: OutOfGasError) -> Self
Source§impl<E> From<ParentMemoryError> for OpError<E>
impl<E> From<ParentMemoryError> for OpError<E>
Source§fn from(source: ParentMemoryError) -> Self
fn from(source: ParentMemoryError) -> Self
Source§impl<E> From<RepeatError> for OpError<E>
impl<E> From<RepeatError> for OpError<E>
Source§fn from(source: RepeatError) -> Self
fn from(source: RepeatError) -> Self
Source§impl<E> From<StackError> for OpError<E>
impl<E> From<StackError> for OpError<E>
Source§fn from(source: StackError) -> Self
fn from(source: StackError) -> Self
Source§impl<E> From<StateReadArgError> for OpError<E>
impl<E> From<StateReadArgError> for OpError<E>
Source§fn from(err: StateReadArgError) -> Self
fn from(err: StateReadArgError) -> Self
Source§impl<E> From<TotalControlFlowError> for OpError<E>
impl<E> From<TotalControlFlowError> for OpError<E>
Source§fn from(source: TotalControlFlowError) -> Self
fn from(source: TotalControlFlowError) -> Self
Auto Trait Implementations§
impl<E> Freeze for OpError<E>where
E: Freeze,
impl<E = Infallible> !RefUnwindSafe for OpError<E>
impl<E> Send for OpError<E>where
E: Send,
impl<E> Sync for OpError<E>where
E: Sync,
impl<E> Unpin for OpError<E>where
E: Unpin,
impl<E = Infallible> !UnwindSafe for OpError<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
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>
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>
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