pub enum MaterializedIndexError {
Database(DatabaseError),
Transaction(TransactionError),
Table(TableError),
Storage(StorageError),
Commit(CommitError),
Durability(SetDurabilityError),
Mutation(MutationError),
MalformedCheckpoint,
Diverged {
sequence: u64,
},
IdempotencyDiverged {
transaction_id: Uuid,
},
MalformedIdempotencyKey,
}Expand description
Failure while opening, verifying, or updating the rebuildable redb index.
Variants§
Database(DatabaseError)
redb could not open or create its database file.
Transaction(TransactionError)
redb could not begin a transaction.
Table(TableError)
A redb table could not be opened.
Storage(StorageError)
A redb table read or write failed.
Commit(CommitError)
A redb transaction could not be committed.
Durability(SetDurabilityError)
A redb durability mode could not be selected.
Mutation(MutationError)
A committed operation is not a valid canonical mutation.
MalformedCheckpoint
Stored index metadata has an invalid length or combination.
Diverged
The index checkpoint does not identify a commit in the verified log.
IdempotencyDiverged
A persisted idempotency receipt is malformed or conflicts with the log.
MalformedIdempotencyKey
A persisted idempotency key is not a UUID.
Trait Implementations§
Source§impl Debug for MaterializedIndexError
impl Debug for MaterializedIndexError
Source§impl Display for MaterializedIndexError
impl Display for MaterializedIndexError
Source§impl Error for MaterializedIndexError
impl Error for MaterializedIndexError
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()
Source§impl From<CommitError> for MaterializedIndexError
impl From<CommitError> for MaterializedIndexError
Source§fn from(source: CommitError) -> Self
fn from(source: CommitError) -> Self
Converts to this type from the input type.
Source§impl From<DatabaseError> for MaterializedIndexError
impl From<DatabaseError> for MaterializedIndexError
Source§fn from(source: DatabaseError) -> Self
fn from(source: DatabaseError) -> Self
Converts to this type from the input type.
Source§impl From<MaterializedIndexError> for StorageError
impl From<MaterializedIndexError> for StorageError
Source§fn from(source: MaterializedIndexError) -> Self
fn from(source: MaterializedIndexError) -> Self
Converts to this type from the input type.
Source§impl From<MaterializedIndexError> for SnapshotError
impl From<MaterializedIndexError> for SnapshotError
Source§fn from(source: MaterializedIndexError) -> Self
fn from(source: MaterializedIndexError) -> Self
Converts to this type from the input type.
Source§impl From<MutationError> for MaterializedIndexError
impl From<MutationError> for MaterializedIndexError
Source§fn from(source: MutationError) -> Self
fn from(source: MutationError) -> Self
Converts to this type from the input type.
Source§impl From<SetDurabilityError> for MaterializedIndexError
impl From<SetDurabilityError> for MaterializedIndexError
Source§fn from(source: SetDurabilityError) -> Self
fn from(source: SetDurabilityError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for MaterializedIndexError
impl From<StorageError> for MaterializedIndexError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
Source§impl From<TableError> for MaterializedIndexError
impl From<TableError> for MaterializedIndexError
Source§fn from(source: TableError) -> Self
fn from(source: TableError) -> Self
Converts to this type from the input type.
Source§impl From<TransactionError> for MaterializedIndexError
impl From<TransactionError> for MaterializedIndexError
Source§fn from(source: TransactionError) -> Self
fn from(source: TransactionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for MaterializedIndexError
impl !UnwindSafe for MaterializedIndexError
impl Freeze for MaterializedIndexError
impl Send for MaterializedIndexError
impl Sync for MaterializedIndexError
impl Unpin for MaterializedIndexError
impl UnsafeUnpin for MaterializedIndexError
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