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§fn deserialize(buf: &mut &[u8]) -> Result<VMLogicError, Error>
fn deserialize(buf: &mut &[u8]) -> Result<VMLogicError, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
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<VMLogicError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<VMLogicError, <__D as Deserializer<'de>>::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<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 for VMLogicError
impl PartialEq for VMLogicError
Source§impl Serialize for VMLogicError
impl Serialize for VMLogicError
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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