pub enum ClientDatabaseError {
InvalidSoftConfirmationDepth,
InvalidMaxForkTipDistance,
ReadRequestCancelled,
ReadError {
error: Error,
},
UnsupportedDatabaseVersion {
database_version: u8,
},
PageGroupSizeTooSmall {
page_group_size: u32,
},
UnexpectedSequenceNumber {
actual: u64,
expected: u64,
page_offset: u32,
},
UnexpectedStorageItem {
storage_item: Box<dyn Debug + Send + Sync>,
page_offset: u32,
},
InvalidBlock {
page_offset: u32,
},
FailedToAdjustAncestorBlockForks,
Unformatted,
NonPermanentFirstPageGroup,
}
Variants§
InvalidSoftConfirmationDepth
Invalid soft confirmation depth, it must be smaller than confirmation depth k
InvalidMaxForkTipDistance
Invalid max fork tip distance, it must be smaller or equal to confirmation depth k
ReadRequestCancelled
Storage backend has canceled read request
ReadError
Storage backend read error
UnsupportedDatabaseVersion
Unsupported database version
PageGroupSizeTooSmall
Page group size is too small, must be at least two pages
UnexpectedSequenceNumber
Unexpected sequence number
Fields
UnexpectedStorageItem
Unexpected storage item
Fields
InvalidBlock
Invalid block
FailedToAdjustAncestorBlockForks
Failed to adjust ancestor block forks
Unformatted
Database is not formatted yet
NonPermanentFirstPageGroup
Non-permanent first page group
Trait Implementations§
Source§impl Debug for ClientDatabaseError
impl Debug for ClientDatabaseError
Source§impl Display for ClientDatabaseError
impl Display for ClientDatabaseError
Source§impl Error for ClientDatabaseError
impl Error for ClientDatabaseError
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 ClientDatabaseError
impl !RefUnwindSafe for ClientDatabaseError
impl Send for ClientDatabaseError
impl Sync for ClientDatabaseError
impl Unpin for ClientDatabaseError
impl !UnwindSafe for ClientDatabaseError
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