Enum tikv::storage::txn::store::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
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][+]
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> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
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>,