Enum ic_cdk::api::stable::StableMemoryError
source · 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