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

RolledBack

The txn was already rolled back before.

TtlExpire

The txn is just rolled back due to expiration.

LockNotExist

The txn is just rolled back due to lock not exist.

Uncommitted

The txn haven’t yet been committed.

Fields of Uncommitted

lock: Lockmin_commit_ts_pushed: bool
Committed

The txn was committed.

Fields of Committed

commit_ts: TimeStamp
PessimisticRollBack

The primary key is pessimistically rolled back.

LockNotExistDoNothing

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<V, W> ConvertFrom<W> for V where
    W: ConvertTo<V>, 
[src]

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]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]