Enum cosmwasm_vm::CommunicationError [−][src]
#[non_exhaustive]
pub enum CommunicationError {
DerefErr {
offset: u32,
msg: String,
},
InvalidOrder {
value: i32,
},
InvalidRegion {
source: RegionValidationError,
},
InvalidUtf8 {
msg: String,
},
RegionLengthTooBig {
length: usize,
max_length: usize,
},
RegionTooSmall {
size: usize,
required: usize,
},
ZeroAddress {},
}
Expand description
An error in the communcation between contract and host. Those happen around imports and exports.
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.
DerefErr
InvalidOrder
Fields
value: i32
InvalidRegion
Fields
source: RegionValidationError
InvalidUtf8
Fields
msg: String
Whenever UTF-8 bytes cannot be decoded into a unicode string, e.g. in String::from_utf8 or str::from_utf8.
RegionLengthTooBig
RegionTooSmall
ZeroAddress
Fields
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for CommunicationError
impl Send for CommunicationError
impl Sync for CommunicationError
impl Unpin for CommunicationError
impl UnwindSafe for CommunicationError
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