pub enum StableMemoryError {
OutOfMemory,
OutOfBounds,
}
Expand description
A possible error value when dealing with stable memory.
Variants
OutOfMemory
No more stable memory could be allocated.
OutOfBounds
Attempted to read more stable memory than had been allocated.
Trait Implementations
sourceimpl Debug for StableMemoryError
impl Debug for StableMemoryError
sourceimpl Display for StableMemoryError
impl Display for StableMemoryError
sourceimpl Error for StableMemoryError
impl Error for StableMemoryError
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
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for StableMemoryError
impl Send for StableMemoryError
impl Sync for StableMemoryError
impl Unpin for StableMemoryError
impl UnwindSafe for StableMemoryError
Blanket Implementations
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