pub enum CommitError {
IntentNotFound,
TxnIdMismatch,
StartTsMismatch,
InvalidCommitTimestamp {
start_ts: Timestamp,
commit_ts: Timestamp,
},
DuplicateCommitTimestamp {
commit_ts: Timestamp,
},
CommitTsTooOld {
commit_ts: Timestamp,
latest_commit_ts: Timestamp,
},
CommitTsTooEarly {
commit_ts: Timestamp,
min_commit_ts: Timestamp,
},
Backend(String),
}Expand description
Error during a single-key commit operation.
Variants§
IntentNotFound
The intent to be committed was not found.
TxnIdMismatch
The transaction ID on the intent does not match the commit request.
StartTsMismatch
The start timestamp on the intent does not match the commit request.
InvalidCommitTimestamp
The commit timestamp is less than or equal to the start timestamp.
Fields
DuplicateCommitTimestamp
A committed version already exists exactly at this commit timestamp.
CommitTsTooOld
The commit timestamp is older than the latest committed version for a key.
Fields
CommitTsTooEarly
The commit timestamp is earlier than the intent’s required minimum commit timestamp.
Fields
Backend(String)
An error returned by the backend storage.
Trait Implementations§
Source§impl Clone for CommitError
impl Clone for CommitError
Source§fn clone(&self) -> CommitError
fn clone(&self) -> CommitError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommitError
impl Debug for CommitError
Source§impl Display for CommitError
impl Display for CommitError
impl Eq for CommitError
Source§impl Error for CommitError
impl Error for CommitError
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()
Source§impl PartialEq for CommitError
impl PartialEq for CommitError
Source§fn eq(&self, other: &CommitError) -> bool
fn eq(&self, other: &CommitError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CommitError
Auto Trait Implementations§
impl Freeze for CommitError
impl RefUnwindSafe for CommitError
impl Send for CommitError
impl Sync for CommitError
impl Unpin for CommitError
impl UnsafeUnpin for CommitError
impl UnwindSafe for CommitError
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