Enum cosmwasm_vm::VmError [−][src]
#[non_exhaustive]
pub enum VmError {
Show 19 variants
BackendErr {
source: BackendError,
},
CacheErr {
msg: String,
},
CommunicationErr {
source: CommunicationError,
},
CompileErr {
msg: String,
},
ConversionErr {
from_type: String,
to_type: String,
input: String,
},
CryptoErr {
source: CryptoError,
},
GasDepletion {},
GenericErr {
msg: String,
},
InstantiationErr {
msg: String,
},
IntegrityErr {},
ParseErr {
target_type: String,
msg: String,
},
DeserializationLimitExceeded {
length: usize,
max_length: usize,
},
SerializeErr {
source_type: String,
msg: String,
},
ResolveErr {
msg: String,
},
ResultMismatch {
function_name: String,
expected: usize,
actual: usize,
},
RuntimeErr {
msg: String,
},
StaticValidationErr {
msg: String,
},
UninitializedContextData {
kind: String,
},
WriteAccessDenied {},
}
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BackendErr
Fields
source: BackendError
CacheErr
Fields
msg: String
CommunicationErr
Fields
source: CommunicationError
CompileErr
Fields
msg: String
ConversionErr
CryptoErr
Fields
source: CryptoError
GasDepletion
Fields
GenericErr
Fields
msg: String
Whenever there is no specific error type available
InstantiationErr
Fields
msg: String
IntegrityErr
Fields
ParseErr
DeserializationLimitExceeded
SerializeErr
ResolveErr
Fields
msg: String
ResultMismatch
RuntimeErr
Fields
msg: String
StaticValidationErr
Fields
msg: String
UninitializedContextData
Fields
kind: String
WriteAccessDenied
Fields
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for VmError
impl UnwindSafe for VmError
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
pub fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
pub fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more