pub enum StableMemoryError {
Show 19 variants
NotInitialized,
AlreadyInitialized,
MemoryAlreadyRegistered,
GrowFailed {
current_pages: u64,
required_pages: u64,
},
ReadOutOfBounds {
offset: u64,
len: u64,
size_bytes: u64,
},
OffsetOverflow,
ImportAlreadyStarted,
ImportNotStarted,
UpdateInProgress,
ImportOutOfOrder {
offset: u64,
expected: u64,
},
ImportOutOfBounds {
offset: u64,
len: u64,
db_size: u64,
},
ImportIncomplete {
written_until: u64,
db_size: u64,
},
ChecksumMismatch {
expected: u64,
actual: u64,
},
ChecksumRefreshChunkEmpty,
Failpoint(&'static str),
MetaChecksumMismatch,
UnsupportedLayoutVersion(u64),
ForeignStableMemoryImage,
ZeroExtentLimitExceeded {
limit: usize,
},
}Variants§
NotInitialized
AlreadyInitialized
MemoryAlreadyRegistered
GrowFailed
ReadOutOfBounds
OffsetOverflow
ImportAlreadyStarted
ImportNotStarted
UpdateInProgress
ImportOutOfOrder
ImportOutOfBounds
ImportIncomplete
ChecksumMismatch
ChecksumRefreshChunkEmpty
Failpoint(&'static str)
MetaChecksumMismatch
UnsupportedLayoutVersion(u64)
ForeignStableMemoryImage
ZeroExtentLimitExceeded
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()
Source§impl From<StableMemoryError> for DbError
impl From<StableMemoryError> for DbError
Source§fn from(source: StableMemoryError) -> Self
fn from(source: StableMemoryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StableMemoryError
impl RefUnwindSafe for StableMemoryError
impl Send for StableMemoryError
impl Sync for StableMemoryError
impl Unpin for StableMemoryError
impl UnsafeUnpin 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