Enum near_vm_errors::VMLogicError [−][src]
Variants
HostError(HostError)
Errors coming from native Wasm VM.
Serialized external error from External trait implementation.
InconsistentStateError(InconsistentStateError)
An error that is caused by an operation on an inconsistent state.
EvmError(EvmError)
An error coming from native EVM.
Trait Implementations
impl BorshDeserialize for VMLogicError where
HostError: BorshDeserialize,
Vec<u8>: BorshDeserialize,
InconsistentStateError: BorshDeserialize,
EvmError: BorshDeserialize,
[src]
HostError: BorshDeserialize,
Vec<u8>: BorshDeserialize,
InconsistentStateError: BorshDeserialize,
EvmError: BorshDeserialize,
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
[src]
pub fn try_from_slice(v: &[u8]) -> Result<Self, Error>
[src]
pub fn is_u8() -> bool
[src]
impl BorshSerialize for VMLogicError where
HostError: BorshSerialize,
Vec<u8>: BorshSerialize,
InconsistentStateError: BorshSerialize,
EvmError: BorshSerialize,
[src]
HostError: BorshSerialize,
Vec<u8>: BorshSerialize,
InconsistentStateError: BorshSerialize,
EvmError: BorshSerialize,
fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), Error>
[src]
pub fn try_to_vec(&self) -> Result<Vec<u8, Global>, Error>
[src]
pub fn is_u8() -> bool
[src]
impl Clone for VMLogicError
[src]
fn clone(&self) -> VMLogicError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for VMLogicError
[src]
impl<'de> Deserialize<'de> for VMLogicError
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for VMLogicError
[src]
impl Error for VMLogicError
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<&'_ VMLogicError> for VMError
[src]
fn from(err: &VMLogicError) -> Self
[src]
impl From<HostError> for VMLogicError
[src]
impl From<InconsistentStateError> for VMLogicError
[src]
fn from(err: InconsistentStateError) -> Self
[src]
impl PartialEq<VMLogicError> for VMLogicError
[src]
fn eq(&self, other: &VMLogicError) -> bool
[src]
fn ne(&self, other: &VMLogicError) -> bool
[src]
impl Serialize for VMLogicError
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for VMLogicError
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,