pub enum BlockchainError {
BlockNotPresent,
Parsing(String),
BlockValidation(BlockValidationErrors),
TransactionError(TransactionError),
InvalidProof,
UtreexoError(String),
Database(Box<dyn DatabaseError>),
ConsensusDecode(Error),
ChainNotInitialized,
InvalidTip(String),
ScriptValidationFailed(Error),
Io(ioError),
}
Variants§
BlockNotPresent
Parsing(String)
BlockValidation(BlockValidationErrors)
TransactionError(TransactionError)
InvalidProof
UtreexoError(String)
Database(Box<dyn DatabaseError>)
ConsensusDecode(Error)
ChainNotInitialized
InvalidTip(String)
ScriptValidationFailed(Error)
Io(ioError)
Trait Implementations§
source§impl Debug for BlockchainError
impl Debug for BlockchainError
source§impl Display for BlockchainError
impl Display for BlockchainError
source§impl Error for BlockchainError
impl Error for BlockchainError
source§impl From<BlockValidationErrors> for BlockchainError
impl From<BlockValidationErrors> for BlockchainError
source§fn from(e: BlockValidationErrors) -> Self
fn from(e: BlockValidationErrors) -> Self
Converts to this type from the input type.
source§impl From<Error> for BlockchainError
impl From<Error> for BlockchainError
source§impl From<Error> for BlockchainError
impl From<Error> for BlockchainError
source§impl From<Error> for BlockchainError
impl From<Error> for BlockchainError
source§impl From<String> for BlockchainError
impl From<String> for BlockchainError
source§impl<T: DatabaseError> From<T> for BlockchainError
impl<T: DatabaseError> From<T> for BlockchainError
source§impl From<TransactionError> for BlockchainError
impl From<TransactionError> for BlockchainError
source§fn from(e: TransactionError) -> Self
fn from(e: TransactionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
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