Enum near_store::StorageError[][src]

pub enum StorageError {
    StorageInternalError,
    TrieNodeMissing,
    StorageInconsistentState(String),
}

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

impl BorshDeserialize for StorageError where
    String: BorshDeserialize
[src]

impl BorshSerialize for StorageError where
    String: BorshSerialize
[src]

impl Clone for StorageError[src]

impl Debug for StorageError[src]

impl Display for StorageError[src]

impl Eq for StorageError[src]

impl Error for StorageError[src]

impl PartialEq<StorageError> for StorageError[src]

impl StructuralEq for StorageError[src]

impl StructuralPartialEq for StorageError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,