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;
fn mark_conflict_comparable<Q>(
&mut self,
key: &Q,
) -> impl Future<Output = ()>
where Self::Key: Borrow<Q>,
Q: Ord + ?Sized;
}Expand description
An optimized version of the AsyncCm trait that if your conflict manager is depend on the order.
Required Methods§
Sourcefn mark_read_comparable<Q>(&mut self, key: &Q) -> impl Future<Output = ()>
fn mark_read_comparable<Q>(&mut self, key: &Q) -> impl Future<Output = ()>
Optimized version of [mark_read] that accepts borrowed keys. Optional to implement.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".