pub enum BatchCommitError {
EmptyBatch,
DuplicateKeyInBatch {
key: Vec<u8>,
},
IntentNotFound {
key: Vec<u8>,
},
TxnIdMismatch {
key: Vec<u8>,
},
StartTsMismatch {
key: Vec<u8>,
},
InvalidCommitTimestamp {
start_ts: Timestamp,
commit_ts: Timestamp,
},
CommitTsTooEarly {
key: Vec<u8>,
commit_ts: Timestamp,
min_commit_ts: Timestamp,
},
CommitTsTooOld {
key: Vec<u8>,
commit_ts: Timestamp,
latest_commit_ts: Timestamp,
},
Backend(String),
}Expand description
Error during a commit batch.
Variants§
EmptyBatch
The batch contained no commit operations.
DuplicateKeyInBatch
The batch contains multiple commits for the same key.
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
CommitTsTooEarly
The commit timestamp is earlier than the intent’s required minimum commit timestamp.
Fields
CommitTsTooOld
The commit timestamp is older than the latest committed version for a key.
Fields
Backend(String)
An error returned by the backend storage.
Trait Implementations§
Source§impl Clone for BatchCommitError
impl Clone for BatchCommitError
Source§fn clone(&self) -> BatchCommitError
fn clone(&self) -> BatchCommitError
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 BatchCommitError
impl Debug for BatchCommitError
Source§impl Display for BatchCommitError
impl Display for BatchCommitError
impl Eq for BatchCommitError
Source§impl Error for BatchCommitError
impl Error for BatchCommitError
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 BatchCommitError
impl PartialEq for BatchCommitError
Source§fn eq(&self, other: &BatchCommitError) -> bool
fn eq(&self, other: &BatchCommitError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BatchCommitError
Auto Trait Implementations§
impl Freeze for BatchCommitError
impl RefUnwindSafe for BatchCommitError
impl Send for BatchCommitError
impl Sync for BatchCommitError
impl Unpin for BatchCommitError
impl UnsafeUnpin for BatchCommitError
impl UnwindSafe for BatchCommitError
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