Enum near_vm_logic::VMLogicError
source · 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)>
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§fn from(err: HostError) -> VMLogicError
fn from(err: HostError) -> VMLogicError
Converts to this type from the input type.
source§impl From<InconsistentStateError> for VMLogicError
impl From<InconsistentStateError> for VMLogicError
source§fn from(err: InconsistentStateError) -> VMLogicError
fn from(err: InconsistentStateError) -> VMLogicError
Converts to this type from the input type.
source§impl PartialEq<VMLogicError> for VMLogicError
impl PartialEq<VMLogicError> for VMLogicError
source§fn eq(&self, other: &VMLogicError) -> bool
fn eq(&self, other: &VMLogicError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VMLogicError
impl StructuralEq for VMLogicError
impl StructuralPartialEq for VMLogicError
Auto Trait Implementations§
impl !RefUnwindSafe for VMLogicError
impl Send for VMLogicError
impl Sync for VMLogicError
impl Unpin for VMLogicError
impl !UnwindSafe for VMLogicError
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request