pub enum BlockchainError {
TransactionNotFound,
InvalidTransaction,
InvalidConfiguration,
InsufficientFunds,
WalletNotFound,
}
Expand description
Blockchain error.
Variants§
TransactionNotFound
Transaction not found.
InvalidTransaction
Transaction is invalid.
InvalidConfiguration
Invalid configuration during blockchain creation.
InsufficientFunds
Insufficient funds.
WalletNotFound
Wallet not found.
Trait Implementations§
Source§impl Debug for BlockchainError
impl Debug for BlockchainError
Source§impl<'de> Deserialize<'de> for BlockchainError
impl<'de> Deserialize<'de> for BlockchainError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for BlockchainError
impl Display for BlockchainError
Source§impl Error for BlockchainError
impl Error for BlockchainError
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 PartialEq for BlockchainError
impl PartialEq for BlockchainError
Source§impl Serialize for BlockchainError
impl Serialize for BlockchainError
impl StructuralPartialEq for BlockchainError
Auto Trait Implementations§
impl Freeze for BlockchainError
impl RefUnwindSafe for BlockchainError
impl Send for BlockchainError
impl Sync for BlockchainError
impl Unpin for BlockchainError
impl UnwindSafe for BlockchainError
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