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§
Source§impl Debug for StableMemoryError
impl Debug for StableMemoryError
Source§impl Display for StableMemoryError
impl Display for StableMemoryError
Source§impl Error for StableMemoryError
impl Error for StableMemoryError
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()
Auto Trait Implementations§
impl Freeze for StableMemoryError
impl RefUnwindSafe for StableMemoryError
impl Send for StableMemoryError
impl Sync for StableMemoryError
impl Unpin for StableMemoryError
impl UnwindSafe for StableMemoryError
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