Skip to main content

AsyncCmComparableRange

Trait AsyncCmComparableRange 

Source
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§

Source

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

Mark the range is read.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§