Skip to main content

AsyncCmEquivalentRange

Trait AsyncCmEquivalentRange 

Source
pub trait AsyncCmEquivalentRange: Sized + AsyncCmRange {
    // Required method
    fn mark_range_equivalent<Q>(
        &mut self,
        range: impl RangeBounds<Q>,
    ) -> impl Future<Output = ()>
       where Self::Key: Borrow<Q>,
             Q: Hash + Eq + ?Sized;
}
Expand description

An optimized version of the AsyncCmRange trait that if your conflict manager is depend on hash.

Required Methods§

Source

fn mark_range_equivalent<Q>( &mut self, range: impl RangeBounds<Q>, ) -> impl Future<Output = ()>
where Self::Key: Borrow<Q>, Q: Hash + Eq + ?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§