pub enum GrowError {
MemoryGrowError,
TableGrowError,
ExceededMaxPages(PageError),
ExceededMaxPagesForMemory(usize, usize),
CouldNotProtectMemory(MemoryProtectionError),
CouldNotCreateMemory(MemoryCreationError),
}
Expand description
An error occurred while growing a memory or table.
Variants§
MemoryGrowError
Error growing memory.
TableGrowError
Error growing table.
ExceededMaxPages(PageError)
Max pages were exceeded.
ExceededMaxPagesForMemory(usize, usize)
Max pages for memory were exceeded.
CouldNotProtectMemory(MemoryProtectionError)
Error protecting memory.
CouldNotCreateMemory(MemoryCreationError)
Error creating memory.
Trait Implementations§
Source§impl Error for GrowError
impl Error for GrowError
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 Into<GrowError> for MemoryCreationError
impl Into<GrowError> for MemoryCreationError
Source§impl Into<GrowError> for MemoryProtectionError
impl Into<GrowError> for MemoryProtectionError
Auto Trait Implementations§
impl Freeze for GrowError
impl !RefUnwindSafe for GrowError
impl Send for GrowError
impl Sync for GrowError
impl Unpin for GrowError
impl !UnwindSafe for GrowError
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