Enum wasmer::MemoryError [−][src]
Error type describing things that can go wrong when operating on Wasm Memories.
Variants
Region(String)
Low level error with mmap.
The operation would cause the size of the memory to exceed the maximum or would cause an overflow leading to unindexable memory.
Fields of CouldNotGrow
The operation would cause the size of the memory size exceed the maximum.
Fields of InvalidMemory
reason: String
The reason why the provided memory is invalid.
Caller asked for more minimum memory than we can give them.
Fields of MinimumMemoryTooLarge
Caller asked for a maximum memory greater than we can give them.
Fields of MaximumMemoryTooLarge
Generic(String)
A user defined error value, used for error cases not listed above.
Trait Implementations
impl Clone for MemoryError
[src]
pub fn clone(&self) -> MemoryError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MemoryError
[src]
impl Display for MemoryError
[src]
impl Error for MemoryError
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl Hash for MemoryError
[src]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<MemoryError> for MemoryError
[src]
pub fn eq(&self, other: &MemoryError) -> bool
[src]
pub fn ne(&self, other: &MemoryError) -> bool
[src]
impl StructuralPartialEq for MemoryError
[src]
Auto Trait Implementations
impl RefUnwindSafe for MemoryError
[src]
impl Send for MemoryError
[src]
impl Sync for MemoryError
[src]
impl Unpin for MemoryError
[src]
impl UnwindSafe for MemoryError
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,