pub enum BlockStoreError {
DuplicateBlock {
height: u64,
first: BlockHash,
second: BlockHash,
},
DuplicateEraId {
era_id: EraId,
first: BlockHash,
second: BlockHash,
},
DuplicateTransaction {
transaction_hash: TransactionHash,
first: BlockHash,
second: BlockHash,
},
InternalStorage(Box<dyn Error + Send + Sync>),
UnsupportedOperation,
}Expand description
Block store error.
Variants§
DuplicateBlock
Found a duplicate block entry of the specified height.
Fields
DuplicateEraId
Found a duplicate switch-block entry of the specified height.
Fields
DuplicateTransaction
Found a duplicate transaction entry.
Fields
§
transaction_hash: TransactionHashTransaction hash at which duplicate was found.
InternalStorage(Box<dyn Error + Send + Sync>)
Internal error.
UnsupportedOperation
The operation is unsupported.
Trait Implementations§
Source§impl Debug for BlockStoreError
impl Debug for BlockStoreError
Source§impl Display for BlockStoreError
impl Display for BlockStoreError
Source§impl Error for BlockStoreError
impl Error for BlockStoreError
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()
Auto Trait Implementations§
impl Freeze for BlockStoreError
impl !RefUnwindSafe for BlockStoreError
impl Send for BlockStoreError
impl Sync for BlockStoreError
impl Unpin for BlockStoreError
impl !UnwindSafe for BlockStoreError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more