pub enum BlockchainError {
Show 17 variants
Io(String),
BincodeDecode(String),
BincodeEncode(String),
HashMismatch {
expected: String,
actual: String,
},
FutureTimestamp(u64),
InvalidDifficulty,
MissingHash,
InvalidTransaction(String),
DoubleSpend,
RewardOverspend,
InvalidRewardTransaction,
InvalidRewardTransactionAmount,
RewardTransactionIdMissing,
NoDevFee,
NoBlocksToPop,
InvalidTimestamp,
InvalidPreviousBlockHash,
}Variants§
Io(String)
BincodeDecode(String)
BincodeEncode(String)
HashMismatch
FutureTimestamp(u64)
InvalidDifficulty
MissingHash
InvalidTransaction(String)
DoubleSpend
RewardOverspend
InvalidRewardTransaction
InvalidRewardTransactionAmount
RewardTransactionIdMissing
NoDevFee
NoBlocksToPop
InvalidTimestamp
InvalidPreviousBlockHash
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§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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<BlockchainError> for BlockchainDataProviderError
impl From<BlockchainError> for BlockchainDataProviderError
Source§fn from(source: BlockchainError) -> Self
fn from(source: BlockchainError) -> Self
Converts to this type from the input type.
Source§impl From<BlockchainError> for PeerError
impl From<BlockchainError> for PeerError
Source§fn from(source: BlockchainError) -> Self
fn from(source: BlockchainError) -> Self
Converts to this type from the input type.
Source§impl From<BlockchainError> for UtilError
impl From<BlockchainError> for UtilError
Source§fn from(source: BlockchainError) -> Self
fn from(source: BlockchainError) -> Self
Converts to this type from the input type.
Source§impl From<TransactionError> for BlockchainError
impl From<TransactionError> for BlockchainError
Source§fn from(err: TransactionError) -> Self
fn from(err: TransactionError) -> Self
Converts to this type from the input type.
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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more