Enum near_primitives::errors::StorageError
source · [−]pub enum StorageError {
StorageInternalError,
TrieNodeMissing,
StorageInconsistentState(String),
}Expand description
Internal
Variants
StorageInternalError
Key-value db internal failure
TrieNodeMissing
Storage is PartialStorage and requested a missing trie node
StorageInconsistentState(String)
Either invalid state or key-value db is corrupted. For PartialStorage it cannot be corrupted. Error message is unreliable and for debugging purposes only. It’s also probably ok to panic in every place that produces this error. We can check if db is corrupted by verifying everything in the state trie.
Trait Implementations
sourceimpl Clone for StorageError
impl Clone for StorageError
sourcefn clone(&self) -> StorageError
fn clone(&self) -> StorageError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for StorageError
impl Debug for StorageError
sourceimpl Display for StorageError
impl Display for StorageError
sourceimpl Error for StorageError
impl Error for StorageError
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()
sourceimpl From<StorageError> for RuntimeError
impl From<StorageError> for RuntimeError
sourcefn from(e: StorageError) -> Self
fn from(e: StorageError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<StorageError> for StorageError
impl PartialEq<StorageError> for StorageError
sourcefn eq(&self, other: &StorageError) -> bool
fn eq(&self, other: &StorageError) -> bool
impl Eq for StorageError
impl StructuralEq for StorageError
impl StructuralPartialEq for StorageError
Auto Trait Implementations
impl RefUnwindSafe for StorageError
impl Send for StorageError
impl Sync for StorageError
impl Unpin for StorageError
impl UnwindSafe for StorageError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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