Enum wasmer_vm::GlobalError [−][src]
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
The error returned when attempting to set an immutable global.
The error returned when attempting to operate on a global as a specific type that differs from the global’s own type.
Show fields
Trait Implementations
impl Clone for GlobalError
[src]
impl Clone for GlobalError
[src]fn clone(&self) -> GlobalError
[src]
fn clone(&self) -> GlobalError
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for GlobalError
[src]
impl Debug for GlobalError
[src]impl Display for GlobalError
[src]
impl Display for GlobalError
[src]impl Error for GlobalError
[src]
impl Error for GlobalError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl Hash for GlobalError
[src]
impl Hash for GlobalError
[src]impl PartialEq<GlobalError> for GlobalError
[src]
impl PartialEq<GlobalError> for GlobalError
[src]fn eq(&self, other: &GlobalError) -> bool
[src]
fn eq(&self, other: &GlobalError) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &GlobalError) -> bool
[src]
fn ne(&self, other: &GlobalError) -> bool
[src]This method tests for !=
.
impl StructuralPartialEq for GlobalError
[src]
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.
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.
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more