pub enum PrewriteError {
KeyLocked {
txn_id: TxnId,
},
WriteConflict,
Backend(String),
IntentAlreadyExists,
}Expand description
Error during a single-key prewrite operation.
Variants§
KeyLocked
The key is locked by another active transaction.
WriteConflict
A committed version exists that is newer than the transaction’s start_ts.
Backend(String)
An error returned by the backend storage.
IntentAlreadyExists
An intent already exists for the same transaction but with different parameters.
Trait Implementations§
Source§impl Clone for PrewriteError
impl Clone for PrewriteError
Source§fn clone(&self) -> PrewriteError
fn clone(&self) -> PrewriteError
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 PrewriteError
impl Debug for PrewriteError
Source§impl Display for PrewriteError
impl Display for PrewriteError
impl Eq for PrewriteError
Source§impl Error for PrewriteError
impl Error for PrewriteError
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 PrewriteError
impl PartialEq for PrewriteError
Source§fn eq(&self, other: &PrewriteError) -> bool
fn eq(&self, other: &PrewriteError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PrewriteError
Auto Trait Implementations§
impl Freeze for PrewriteError
impl RefUnwindSafe for PrewriteError
impl Send for PrewriteError
impl Sync for PrewriteError
impl Unpin for PrewriteError
impl UnsafeUnpin for PrewriteError
impl UnwindSafe for PrewriteError
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