pub enum InvalidStorageItemError {
BlockHeaderDecoding,
BlockBodyDecoding,
BlockAlreadyKnown {
block_root: BlockRoot,
},
BlockNumberAboveBestBlock {
block_number: BlockNumber,
best_number: BlockNumber,
},
SegmentHeaders {
error: PersistSegmentHeadersError,
},
SuperSegmentHeaders {
error: PersistSuperSegmentsError,
},
HeaderPage {
num_headers: usize,
num_headers_per_page: usize,
},
HeadersAfterPages {
first_header_position: u64,
num_headers_in_pages: usize,
},
}Expand description
Why a storage item is not valid, see ClientDatabaseError::InvalidStorageItem
Variants§
BlockHeaderDecoding
Failed to decode block header
BlockBodyDecoding
Failed to decode block body
BlockAlreadyKnown
Block is already known, a known block is never written again
Fields
§
block_root: BlockRootRoot of the block in the storage item
BlockNumberAboveBestBlock
Block above the best block must be only one block higher than the best block
Fields
§
block_number: BlockNumberNumber of the block in the storage item
§
best_number: BlockNumberNumber of the best block
SegmentHeaders
Segment headers can’t be added
Fields
§
error: PersistSegmentHeadersErrorLow-level error
SuperSegmentHeaders
Super segment headers can’t be added
Fields
§
error: PersistSuperSegmentsErrorLow-level error
HeaderPage
Page of headers is not full
Fields
HeadersAfterPages
Headers of a storage item don’t start right after the headers in pages
Trait Implementations§
Source§impl Debug for InvalidStorageItemError
impl Debug for InvalidStorageItemError
Source§impl Display for InvalidStorageItemError
impl Display for InvalidStorageItemError
Source§impl Error for InvalidStorageItemError
impl Error for InvalidStorageItemError
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 Forget for InvalidStorageItemError
impl Freeze for InvalidStorageItemError
impl Move for InvalidStorageItemError
impl RefUnwindSafe for InvalidStorageItemError
impl Send for InvalidStorageItemError
impl Sync for InvalidStorageItemError
impl Unpin for InvalidStorageItemError
impl UnsafeUnpin for InvalidStorageItemError
impl UnwindSafe for InvalidStorageItemError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§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