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
sourceimpl Clone for GlobalError
impl Clone for GlobalError
sourcefn clone(&self) -> GlobalError
fn clone(&self) -> GlobalError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GlobalError
impl Debug for GlobalError
sourceimpl Display for GlobalError
impl Display for GlobalError
sourceimpl Error for GlobalError
impl Error for GlobalError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl Hash for GlobalError
impl Hash for GlobalError
sourceimpl PartialEq<GlobalError> for GlobalError
impl PartialEq<GlobalError> for GlobalError
sourcefn eq(&self, other: &GlobalError) -> bool
fn eq(&self, other: &GlobalError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GlobalError) -> bool
fn ne(&self, other: &GlobalError) -> bool
This method tests for !=
.
impl StructuralPartialEq for GlobalError
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
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
sourceimpl<T> Upcastable for T where
T: 'static + Any + Send + Sync,
impl<T> Upcastable for T where
T: 'static + Any + Send + Sync,
sourcefn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
sourcefn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref