Enum lumina_node::store::StoreError
source · pub enum StoreError {
Show 14 variants
HashExists(Hash),
HeightExists(u64),
NonContinuousAppend(u64, u64),
HeaderChecksError(u64),
NotFound,
LostHeight(u64),
LostHash(Hash),
CelestiaTypes(Error),
StoredDataError(String),
BackingStoreError(String),
ExecutorError(String),
IoError(Error),
OpenFailed(String),
InvalidHeadersRange,
}Expand description
Representation of all the errors that can occur when interacting with the Store.
Variants§
HashExists(Hash)
Hash already exists in the store.
HeightExists(u64)
Height already exists in the store.
NonContinuousAppend(u64, u64)
Inserted height is not following store’s current head.
HeaderChecksError(u64)
Header validation has failed.
NotFound
Header not found.
LostHeight(u64)
Header not found but it should be present. Store is invalid.
LostHash(Hash)
Hash not found but it should be present. Store is invalid.
CelestiaTypes(Error)
An error propagated from the celestia_types.
StoredDataError(String)
Storage corrupted.
BackingStoreError(String)
Unrecoverable error reported by the backing store.
ExecutorError(String)
An error propagated from the async executor.
IoError(Error)
An error propagated from the IO operation.
OpenFailed(String)
Failed to open the store.
InvalidHeadersRange
Invalid range of headers provided.
Trait Implementations§
source§impl Debug for StoreError
impl Debug for StoreError
source§impl Display for StoreError
impl Display for StoreError
source§impl Error for StoreError
impl Error for StoreError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl From<Error> for StoreError
impl From<Error> for StoreError
source§fn from(error: SledError) -> StoreError
fn from(error: SledError) -> StoreError
Converts to this type from the input type.
source§impl From<Error> for StoreError
impl From<Error> for StoreError
source§impl From<Error> for StoreError
impl From<Error> for StoreError
source§impl From<JoinError> for StoreError
impl From<JoinError> for StoreError
source§fn from(error: JoinError) -> StoreError
fn from(error: JoinError) -> StoreError
Converts to this type from the input type.
source§impl From<StoreError> for NodeError
impl From<StoreError> for NodeError
source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
source§impl From<StoreError> for SyncerError
impl From<StoreError> for SyncerError
source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
source§impl From<TransactionError<StoreError>> for StoreError
impl From<TransactionError<StoreError>> for StoreError
source§fn from(error: TransactionError<StoreError>) -> StoreError
fn from(error: TransactionError<StoreError>) -> StoreError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for StoreError
impl Send for StoreError
impl Sync for StoreError
impl Unpin for StoreError
impl !UnwindSafe for StoreError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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