Enum wasmer_vm::GlobalError
source · [−]pub enum GlobalError {
ImmutableGlobalCannotBeSet,
IncorrectType {
expected: Type,
found: Type,
},
}
Expand description
Error type describing things that can go wrong when operating on Wasm Globals.
Variants
ImmutableGlobalCannotBeSet
The error returned when attempting to set an immutable global.
IncorrectType
Fields
expected: Type
The type that the global is.
found: Type
The type that we were asked to use it as.
The error returned when attempting to operate on a global as a specific type that differs from the global’s own type.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for GlobalError
impl Send for GlobalError
impl Sync for GlobalError
impl Unpin for GlobalError
impl UnwindSafe for GlobalError
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