Enum tikv::storage::TxnStatus [−][src]
pub enum TxnStatus { RolledBack, TtlExpire, LockNotExist, Uncommitted { lock: Lock, min_commit_ts_pushed: bool, }, Committed { commit_ts: TimeStamp, }, PessimisticRollBack, LockNotExistDoNothing, }
Represents the status of a transaction.
Variants
The txn was already rolled back before.
The txn is just rolled back due to expiration.
The txn is just rolled back due to lock not exist.
The txn haven’t yet been committed.
The txn was committed.
Fields of Committed
commit_ts: TimeStamp
The primary key is pessimistically rolled back.
The txn primary key is not found and nothing is done.
Implementations
impl TxnStatus
[src][−]
pub fn uncommitted(lock: Lock, min_commit_ts_pushed: bool) -> Self
[src]
pub fn committed(commit_ts: TimeStamp) -> Self
[src]
Trait Implementations
impl Debug for TxnStatus
[src][+]
impl PartialEq<TxnStatus> for TxnStatus
[src][+]
impl StorageCallbackType for TxnStatus
[src][+]
impl StructuralPartialEq for TxnStatus
[src]
Auto Trait Implementations
impl RefUnwindSafe for TxnStatus
impl Send for TxnStatus
impl Sync for TxnStatus
impl Unpin for TxnStatus
impl UnwindSafe for TxnStatus
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<V, W> ConvertFrom<W> for V where
W: ConvertTo<V>,
[src][+]
W: ConvertTo<V>,
impl<T> From<T> for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> Pointable for T
[src][+]
impl<T> Pointable for T
[src][+]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,