Trait txn_core::future::AsyncCmEquivalent
source · pub trait AsyncCmEquivalent: AsyncCm {
// Required methods
fn mark_read_equivalent<Q>(&mut self, key: &Q) -> impl Future<Output = ()>
where Self::Key: Borrow<Q>,
Q: Hash + Eq + ?Sized + Sync;
fn mark_conflict_equivalent<Q>(
&mut self,
key: &Q
) -> impl Future<Output = ()>
where Self::Key: Borrow<Q>,
Q: Hash + Eq + ?Sized + Sync;
}
Expand description
An optimized version of the AsyncCm
trait that if your conflict manager is depend on hash.
Required Methods§
sourcefn mark_read_equivalent<Q>(&mut self, key: &Q) -> impl Future<Output = ()>
fn mark_read_equivalent<Q>(&mut self, key: &Q) -> impl Future<Output = ()>
Optimized version of [mark_read
] that accepts borrowed keys. Optional to implement.
Object Safety§
This trait is not object safe.