pub enum WasmMemoryError {
BytesNotPageAligned,
PageCountOverflow,
MaximumLessThanMinimum,
}Expand description
Error returned when memory limits are invalid.
Variants§
BytesNotPageAligned
The byte count is not a whole number of Wasm pages.
PageCountOverflow
The page count does not fit in ‘u32’.
MaximumLessThanMinimum
The maximum page count is lower than the minimum page count.
Trait Implementations§
Source§impl Clone for WasmMemoryError
impl Clone for WasmMemoryError
Source§fn clone(&self) -> WasmMemoryError
fn clone(&self) -> WasmMemoryError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WasmMemoryError
impl Debug for WasmMemoryError
Source§impl Display for WasmMemoryError
impl Display for WasmMemoryError
Source§impl Error for WasmMemoryError
impl Error for WasmMemoryError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl Hash for WasmMemoryError
impl Hash for WasmMemoryError
Source§impl Ord for WasmMemoryError
impl Ord for WasmMemoryError
Source§fn cmp(&self, other: &WasmMemoryError) -> Ordering
fn cmp(&self, other: &WasmMemoryError) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WasmMemoryError
impl PartialEq for WasmMemoryError
Source§fn eq(&self, other: &WasmMemoryError) -> bool
fn eq(&self, other: &WasmMemoryError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for WasmMemoryError
impl PartialOrd for WasmMemoryError
impl Copy for WasmMemoryError
impl Eq for WasmMemoryError
impl StructuralPartialEq for WasmMemoryError
Auto Trait Implementations§
impl Freeze for WasmMemoryError
impl RefUnwindSafe for WasmMemoryError
impl Send for WasmMemoryError
impl Sync for WasmMemoryError
impl Unpin for WasmMemoryError
impl UnsafeUnpin for WasmMemoryError
impl UnwindSafe for WasmMemoryError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more