Enum tikv::storage::txn::TxnEntry[][src]

pub enum TxnEntry {
    Prewrite {
        default: KvPair,
        lock: KvPair,
        old_value: Option<Value>,
    },
    Commit {
        default: KvPair,
        write: KvPair,
        old_value: Option<Value>,
    },
}

A transaction entry in underlying storage.

Variants

Prewrite

Fields of Prewrite

default: KvPairlock: KvPairold_value: Option<Value>
Commit

Fields of Commit

default: KvPairwrite: KvPairold_value: Option<Value>

Implementations

impl TxnEntry[src]

pub fn into_kvpair(self) -> Result<(Vec<u8>, Vec<u8>)>[src]

This method will return a kv pair whose content and encode are same as a kv pair reture by StoreScanner::next

pub fn to_key(&self) -> Result<Key>[src]

This method will generate this kv pair’s key

pub fn size(&self) -> usize[src]

Trait Implementations

impl Clone for TxnEntry[src]

impl Debug for TxnEntry[src]

impl PartialEq<TxnEntry> for TxnEntry[src]

impl StructuralPartialEq for TxnEntry[src]

Auto Trait Implementations

impl RefUnwindSafe for TxnEntry

impl Send for TxnEntry

impl Sync for TxnEntry

impl Unpin for TxnEntry

impl UnwindSafe for TxnEntry

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]