pub enum ErrorKind {
Show 16 variants
CoinInvalid,
CoinNotUnique,
CoinTooCheap,
TransactionInvalidSender,
TransactionEmpty,
TransactionBrokenGroup,
TransactionBrokenExt,
BlockBroken,
BlockOrderMismatch,
BlockValidatorMismatch,
BlockPreviousHashMismatch,
BlockOffsetMismatch,
BlockInvalidHash,
BlockInvalidHashComplexity,
BlockchainTruncate,
Other,
}Expand description
Represents specific categories of errors that can occur within the Uqoin protocol:
- CoinInvalid: Indicates that a coin fails validation checks.
- CoinNotUnique: Denotes duplication of coin identifiers.
- CoinTooCheap: Signifies that a coin’s value is below the acceptable threshold.
- TransactionInvalidSender: The sender information in a transaction is invalid or cannot be verified.
- TransactionEmpty: The transaction contains no operations or data.
- TransactionBrokenGroup: The transaction group structure is malformed or inconsistent.
- TransactionBrokenExt: Extension data is corrupted or invalid.
- BlockBroken: The block structure is corrupted or fails integrity checks.
- BlockOrderMismatch: The sequence of blocks does not follow the expected order.
- BlockValidatorMismatch: The block’s validator does not match the expected validator.
- BlockPreviousHashMismatch: The previous hash reference in the block does not match the actual previous block’s hash.
- BlockOffsetMismatch: The block’s offset value is incorrect or inconsistent.
- BlockInvalidHash: The block’s hash does not meet the required criteria.
- BlockInvalidHashComplexity: The block’s hash does not satisfy the complexity requirements.
- Other: A catch-all for unspecified or miscellaneous errors.
Variants§
CoinInvalid
CoinNotUnique
CoinTooCheap
TransactionInvalidSender
TransactionEmpty
TransactionBrokenGroup
TransactionBrokenExt
BlockBroken
BlockOrderMismatch
BlockValidatorMismatch
BlockPreviousHashMismatch
BlockOffsetMismatch
BlockInvalidHash
BlockInvalidHashComplexity
BlockchainTruncate
Other
Trait Implementations§
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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