pub enum ClientDatabaseError {
Show 14 variants
InvalidBlockConfirmationDepth,
InvalidSoftConfirmationDepth,
ReadRequestCancelled,
ReadError {
error: Error,
},
UnsupportedDatabaseVersion {
database_version: u8,
},
PageGroupSizeTooSmall {
page_group_size: u32,
},
PageGroupSizeTooLarge {
page_group_size: u32,
num_pages: u32,
},
UnexpectedSequenceNumber {
actual: u64,
expected: u64,
page_offset: u32,
},
UnexpectedStorageItem {
storage_item: Box<dyn Debug + Send + Sync>,
page_offset: u32,
},
InvalidBlock {
page_offset: u32,
},
InvalidSegmentHeaders {
page_offset: u32,
},
FailedToAdjustAncestorBlockForks,
Unformatted,
NonPermanentFirstPageGroup,
}Variants§
InvalidBlockConfirmationDepth
Invalid block confirmation depth, it must be at least 2.
Fork blocks are only accepted above block offset block_confirmation_depth - 1, smaller
values leave no block offset for them.
InvalidSoftConfirmationDepth
Invalid soft confirmation depth, it must be smaller than block confirmation depth
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
PageGroupSizeTooLarge
Page group size is larger than the storage backend
Fields
UnexpectedSequenceNumber
Unexpected sequence number
Fields
UnexpectedStorageItem
Unexpected storage item
Fields
InvalidBlock
Invalid block
InvalidSegmentHeaders
Invalid segment headers
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 !RefUnwindSafe for ClientDatabaseError
impl !UnwindSafe for ClientDatabaseError
impl Forget for ClientDatabaseError
impl Freeze for ClientDatabaseError
impl Send for ClientDatabaseError
impl Sync for ClientDatabaseError
impl Unpin for ClientDatabaseError
impl UnsafeUnpin 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