Trait tikv::storage::txn::commands::prewrite::MutationLock[][src]

trait MutationLock {
    fn is_pessimistic_lock(&self) -> bool;
fn into_mutation(self) -> Mutation; }

The type of mutation and, optionally, its extra information, differing for the optimistic and pessimistic transaction. For optimistic txns, this is Mutation. For pessimistic txns, this is (Mutation, bool), where the bool indicates whether the mutation takes a pessimistic lock or not.

Required methods

fn is_pessimistic_lock(&self) -> bool[src]

fn into_mutation(self) -> Mutation[src]

Loading content...

Implementations on Foreign Types

impl MutationLock for (Mutation, bool)[src]

Loading content...

Implementors

impl MutationLock for Mutation[src]

Loading content...