pub enum VMLogicError {
HostError(HostError),
ExternalError(AnyError),
InconsistentStateError(InconsistentStateError),
}
Variants§
HostError(HostError)
Errors coming from native Wasm VM.
ExternalError(AnyError)
Type erased error from External
trait implementation.
InconsistentStateError(InconsistentStateError)
An error that is caused by an operation on an inconsistent state.
Trait Implementations§
Source§impl Debug for VMLogicError
impl Debug for VMLogicError
Source§impl Display for VMLogicError
impl Display for VMLogicError
Source§impl Error for VMLogicError
impl Error for VMLogicError
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()
Source§impl From<HostError> for VMLogicError
impl From<HostError> for VMLogicError
Source§impl From<InconsistentStateError> for VMLogicError
impl From<InconsistentStateError> for VMLogicError
Source§fn from(err: InconsistentStateError) -> Self
fn from(err: InconsistentStateError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for VMLogicError
impl PartialEq for VMLogicError
Source§impl TryFrom<VMLogicError> for FunctionCallError
Try to convert a general error that happened at the VMLogic
level to a
FunctionCallError
that can be included in a VMOutcome
.
impl TryFrom<VMLogicError> for FunctionCallError
Try to convert a general error that happened at the VMLogic
level to a
FunctionCallError
that can be included in a VMOutcome
.
VMLogicError
have two very different types of errors. Some are just
a result from the guest code doing incorrect things, other are bugs in
unc-infra.
The first type can be converted to a FunctionCallError
, the other becomes
a VMRunnerError
instead and must be treated differently.
Source§type Error = VMRunnerError
type Error = VMRunnerError
The type returned in the event of a conversion error.
impl Eq for VMLogicError
impl StructuralPartialEq for VMLogicError
Auto Trait Implementations§
impl Freeze for VMLogicError
impl !RefUnwindSafe for VMLogicError
impl Send for VMLogicError
impl Sync for VMLogicError
impl Unpin for VMLogicError
impl !UnwindSafe for VMLogicError
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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