Enum essential_check::state_read_vm::error::OpError
source · pub enum OpError<E> {
Sync(OpSyncError),
Async(OpAsyncError<E>),
FromBytes(FromBytesError),
OutOfGas(OutOfGasError),
}
Expand description
An individual operation failed during state read execution.
Variants§
Sync(OpSyncError)
A synchronous operation failed.
Async(OpAsyncError<E>)
An asynchronous operation failed.
FromBytes(FromBytesError)
An error occurred while parsing an operation from bytes.
OutOfGas(OutOfGasError)
The total gas limit was exceeded.
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)>
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<FromBytesError> for OpError<E>
impl<E> From<FromBytesError> for OpError<E>
source§fn from(source: FromBytesError) -> OpError<E>
fn from(source: FromBytesError) -> OpError<E>
Converts to this type from the input type.
source§impl<E> From<Infallible> for OpError<E>
impl<E> From<Infallible> for OpError<E>
source§fn from(err: Infallible) -> OpError<E>
fn from(err: Infallible) -> OpError<E>
Converts to this type from the input type.
source§impl<E> From<OpAsyncError<E>> for OpError<E>
impl<E> From<OpAsyncError<E>> for OpError<E>
source§fn from(source: OpAsyncError<E>) -> OpError<E>
fn from(source: OpAsyncError<E>) -> OpError<E>
Converts to this type from the input type.
source§impl<E> From<OpSyncError> for OpError<E>
impl<E> From<OpSyncError> for OpError<E>
source§fn from(source: OpSyncError) -> OpError<E>
fn from(source: OpSyncError) -> OpError<E>
Converts to this type from the input type.
source§impl<E> From<OutOfGasError> for OpError<E>
impl<E> From<OutOfGasError> for OpError<E>
source§fn from(source: OutOfGasError) -> OpError<E>
fn from(source: OutOfGasError) -> OpError<E>
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for OpError<E>where
E: Freeze,
impl<E> !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> !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
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