pub trait AsyncCmComparableRange: AsyncCmRange + CmComparable {
// Required method
fn mark_range_comparable<Q>(
&mut self,
range: impl RangeBounds<Q>,
) -> impl Future<Output = ()>
where Self::Key: Borrow<Q>,
Q: Ord + ?Sized;
}Expand description
An optimized version of the AsyncCmRange trait that if your conflict manager is depend on the order.
Required Methods§
Sourcefn mark_range_comparable<Q>(
&mut self,
range: impl RangeBounds<Q>,
) -> impl Future<Output = ()>
fn mark_range_comparable<Q>( &mut self, range: impl RangeBounds<Q>, ) -> impl Future<Output = ()>
Mark the range is read.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".