Trait txn_core::future::AsyncCmComparable

source ·
pub trait AsyncCmComparable: AsyncCm {
    // Required methods
    fn mark_read_comparable<Q>(&mut self, key: &Q) -> impl Future<Output = ()>
       where Self::Key: Borrow<Q>,
             Q: Ord + ?Sized + Sync;
    fn mark_conflict_comparable<Q>(
        &mut self,
        key: &Q
    ) -> impl Future<Output = ()>
       where Self::Key: Borrow<Q>,
             Q: Ord + ?Sized + Sync;
}
Expand description

An optimized version of the AsyncCm trait that if your conflict manager is depend on the order.

Required Methods§

source

fn mark_read_comparable<Q>(&mut self, key: &Q) -> impl Future<Output = ()>
where Self::Key: Borrow<Q>, Q: Ord + ?Sized + Sync,

Optimized version of [mark_read] that accepts borrowed keys. Optional to implement.

source

fn mark_conflict_comparable<Q>(&mut self, key: &Q) -> impl Future<Output = ()>
where Self::Key: Borrow<Q>, Q: Ord + ?Sized + Sync,

Optimized version of [mark_conflict] that accepts borrowed keys. Optional to implement.

Object Safety§

This trait is not object safe.

Implementors§