pub enum VersionError {
Show 28 variants
InvalidIdentifierBounds,
IdentifiersExhausted,
SequenceExhausted,
CommitOrder {
previous: CommitSequence,
next: CommitSequence,
},
WriteConflict {
mutation: usize,
expected: Option<CommitSequence>,
actual: Option<CommitSequence>,
},
ReadConflict {
dependency: usize,
expected: Option<CommitSequence>,
actual: Option<CommitSequence>,
},
SerializationConflict {
transaction: SerializableTransactionId,
},
WrongSerializableCoordinator,
CommitSnapshotChanged {
expected: CommitSequence,
actual: CommitSequence,
},
ReclaimedObservation {
observed: Option<u64>,
minimum: u64,
current: u64,
},
DuplicateRecord {
first: usize,
second: usize,
},
PrivateRevisionExhausted,
SavepointMissing(StorageSavepointId),
InvalidTransactionId,
InvalidRestoreIdentity,
WrongDatabase,
TransactionIdsExhausted,
ReceiptRetentionExhausted {
limit: u64,
},
UnknownTransaction,
TransactionFinished,
TransactionSealed,
AlreadyCommitted(CommitReceipt),
AlreadyAborted(StorageTransactionId),
CommitMismatch,
InvalidEncoding(&'static str),
Memory(MemoryError),
Cancelled(QueryCancelled),
Storage(StorageBackendError),
}Variants§
InvalidIdentifierBounds
IdentifiersExhausted
SequenceExhausted
CommitOrder
WriteConflict
ReadConflict
SerializationConflict
Fields
§
transaction: SerializableTransactionIdWrongSerializableCoordinator
CommitSnapshotChanged
The provider verified a pending receipt under exclusive admission, but evaluated derived effects used an earlier committed snapshot. Only those pure effects may be prepared again.
ReclaimedObservation
DuplicateRecord
PrivateRevisionExhausted
SavepointMissing(StorageSavepointId)
InvalidTransactionId
InvalidRestoreIdentity
WrongDatabase
TransactionIdsExhausted
ReceiptRetentionExhausted
UnknownTransaction
TransactionFinished
TransactionSealed
AlreadyCommitted(CommitReceipt)
AlreadyAborted(StorageTransactionId)
CommitMismatch
InvalidEncoding(&'static str)
Memory(MemoryError)
Cancelled(QueryCancelled)
Storage(StorageBackendError)
Implementations§
Source§impl VersionError
impl VersionError
Sourcepub fn into_storage_error(self) -> StorageBackendError
pub fn into_storage_error(self) -> StorageBackendError
Preserve resource and provider diagnostics through existing storage APIs.
Trait Implementations§
Source§impl Debug for VersionError
impl Debug for VersionError
Source§impl Display for VersionError
impl Display for VersionError
Source§impl Error for VersionError
impl Error for VersionError
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<MemoryError> for VersionError
impl From<MemoryError> for VersionError
Source§fn from(source: MemoryError) -> Self
fn from(source: MemoryError) -> Self
Converts to this type from the input type.
Source§impl From<QueryCancelled> for VersionError
impl From<QueryCancelled> for VersionError
Source§fn from(source: QueryCancelled) -> Self
fn from(source: QueryCancelled) -> Self
Converts to this type from the input type.
Source§impl From<StorageBackendError> for VersionError
impl From<StorageBackendError> for VersionError
Source§fn from(source: StorageBackendError) -> Self
fn from(source: StorageBackendError) -> Self
Converts to this type from the input type.
Source§impl From<VersionError> for CommitFailure
impl From<VersionError> for CommitFailure
Source§fn from(source: VersionError) -> Self
fn from(source: VersionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for VersionError
impl !UnwindSafe for VersionError
impl Freeze for VersionError
impl Send for VersionError
impl Sync for VersionError
impl Unpin for VersionError
impl UnsafeUnpin for VersionError
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