Trait tikv::storage::txn::commands::prewrite::PrewriteKind [−][src]
Encapsulates things which must be done differently for optimistic or pessimistic transactions.
Associated Types
type Mutation: MutationLock
[src]
The type of mutation and, optionally, its extra information, differing for the optimistic and pessimistic transaction.
Required methods
fn txn_kind(&self) -> TransactionKind
[src]
Provided methods
fn can_skip_constraint_check(
&mut self,
_mutations: &mut [Self::Mutation],
_snapshot: &impl Snapshot,
_context: &mut WriteContext<'_, impl LockManager>
) -> Result<()>
[src]
&mut self,
_mutations: &mut [Self::Mutation],
_snapshot: &impl Snapshot,
_context: &mut WriteContext<'_, impl LockManager>
) -> Result<()>
Implementors
impl PrewriteKind for Optimistic
[src]
type Mutation = Mutation
fn txn_kind(&self) -> TransactionKind
[src]
fn can_skip_constraint_check(
&mut self,
mutations: &mut [Self::Mutation],
snapshot: &impl Snapshot,
context: &mut WriteContext<'_, impl LockManager>
) -> Result<()>
[src]
&mut self,
mutations: &mut [Self::Mutation],
snapshot: &impl Snapshot,
context: &mut WriteContext<'_, impl LockManager>
) -> Result<()>