pub enum BatchPrewriteError {
EmptyBatch,
DuplicateKeyInBatch {
key: Vec<u8>,
},
KeyLocked {
key: Vec<u8>,
txn_id: TxnId,
},
WriteConflict {
key: Vec<u8>,
},
IntentAlreadyExists {
key: Vec<u8>,
},
PartialBatchReplay,
Backend(String),
}Expand description
Error during a prewrite batch.
Variants§
EmptyBatch
The batch contained no write operations.
DuplicateKeyInBatch
The batch contains multiple writes for the same key.
KeyLocked
A key in the batch is currently locked by another active transaction.
WriteConflict
A committed version exists that is newer than the transaction’s start_ts.
IntentAlreadyExists
An intent already exists for the same transaction but with different parameters.
PartialBatchReplay
The batch is a partial replay, meaning some intents exist while others do not.
Backend(String)
An error returned by the backend storage.
Trait Implementations§
Source§impl Clone for BatchPrewriteError
impl Clone for BatchPrewriteError
Source§fn clone(&self) -> BatchPrewriteError
fn clone(&self) -> BatchPrewriteError
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 BatchPrewriteError
impl Debug for BatchPrewriteError
Source§impl Display for BatchPrewriteError
impl Display for BatchPrewriteError
impl Eq for BatchPrewriteError
Source§impl Error for BatchPrewriteError
impl Error for BatchPrewriteError
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 BatchPrewriteError
impl PartialEq for BatchPrewriteError
impl StructuralPartialEq for BatchPrewriteError
Auto Trait Implementations§
impl Freeze for BatchPrewriteError
impl RefUnwindSafe for BatchPrewriteError
impl Send for BatchPrewriteError
impl Sync for BatchPrewriteError
impl Unpin for BatchPrewriteError
impl UnsafeUnpin for BatchPrewriteError
impl UnwindSafe for BatchPrewriteError
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