pub enum VMLogicError {
HostError(HostError),
ExternalError(Vec<u8>),
InconsistentStateError(InconsistentStateError),
}
Variants§
HostError(HostError)
Errors coming from native Wasm VM.
ExternalError(Vec<u8>)
Serialized external error from External trait implementation.
InconsistentStateError(InconsistentStateError)
An error that is caused by an operation on an inconsistent state.
Trait Implementations§
Source§impl BorshDeserialize for VMLogicError
impl BorshDeserialize for VMLogicError
Source§impl BorshSerialize for VMLogicError
impl BorshSerialize for VMLogicError
Source§impl Clone for VMLogicError
impl Clone for VMLogicError
Source§fn clone(&self) -> VMLogicError
fn clone(&self) -> VMLogicError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VMLogicError
impl Debug for VMLogicError
Source§impl<'de> Deserialize<'de> for VMLogicError
impl<'de> Deserialize<'de> for VMLogicError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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<&VMLogicError> for VMError
impl From<&VMLogicError> for VMError
Source§fn from(err: &VMLogicError) -> Self
fn from(err: &VMLogicError) -> Self
Converts to this type from the input type.
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 Serialize for VMLogicError
impl Serialize 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> 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