Enum snarkvm_objects::errors::storage::StorageError [−][src]
pub enum StorageError {
Show variants
Crate(&'static str, String),
DuplicateCm,
DuplicateSn,
DuplicateMemo,
ExistingCanonBlock(String),
ExistingCm(Vec<u8>),
ExistingMemo(Vec<u8>),
ExistingSn(Vec<u8>),
InvalidBlockDecommit,
InvalidBlockRemovalCanon(String),
InvalidBlockRemovalNum(u32, u32),
InvalidColumnFamily(u32),
InvalidOutpoint(String, usize),
InvalidTransactionId(String),
Message(String),
MissingBlockHash(u32),
MissingBlockHeader(String),
MissingBlockNumber(String),
MissingBlockTransactions(String),
MissingChildBlock(String),
MissingCurrentCmIndex,
MissingCurrentDigest,
MissingCurrentMemoIndex,
MissingCurrentSnIndex,
MissingGenesisAccount,
MissingGenesisCm,
MissingGenesisMemo,
MissingGenesisProgramVkBytes,
MissingGenesisSn,
MissingTransactionMeta(String),
MissingValue(String),
NullError(()),
BlockError(BlockError),
MerkleError(MerkleError),
ParameterError(ParameterError),
TransactionError(TransactionError),
}Variants
ExistingCanonBlock(String)InvalidBlockRemovalCanon(String)InvalidColumnFamily(u32)InvalidTransactionId(String)Message(String)MissingBlockHash(u32)MissingBlockHeader(String)MissingBlockNumber(String)MissingBlockTransactions(String)MissingChildBlock(String)MissingTransactionMeta(String)MissingValue(String)NullError(())BlockError(BlockError)MerkleError(MerkleError)ParameterError(ParameterError)TransactionError(TransactionError)Trait Implementations
impl Debug for StorageError[src]
impl Debug for StorageError[src]impl Display for StorageError[src]
impl Display for StorageError[src]impl Error for StorageError[src]
impl Error for StorageError[src]fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>[src]
fn backtrace(&self) -> Option<&Backtrace>[src]🔬 This is a nightly-only experimental API. (
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str1.0.0[src]
fn description(&self) -> &str1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl From<&'static str> for StorageError[src]
impl From<&'static str> for StorageError[src]impl From<BlockError> for StorageError[src]
impl From<BlockError> for StorageError[src]fn from(error: BlockError) -> Self[src]
fn from(error: BlockError) -> Self[src]Performs the conversion.
impl From<MerkleError> for StorageError[src]
impl From<MerkleError> for StorageError[src]fn from(error: MerkleError) -> Self[src]
fn from(error: MerkleError) -> Self[src]Performs the conversion.
impl From<ParameterError> for StorageError[src]
impl From<ParameterError> for StorageError[src]fn from(error: ParameterError) -> Self[src]
fn from(error: ParameterError) -> Self[src]Performs the conversion.
impl From<TransactionError> for StorageError[src]
impl From<TransactionError> for StorageError[src]fn from(error: TransactionError) -> Self[src]
fn from(error: TransactionError) -> Self[src]Performs the conversion.
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
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for Timpl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,