pub trait Merge<In>: Sized + Clone + Send + Sync + 'static {
    type Out: Send;

    // Required method
    fn merge(&self, input: Vec<Result<In>>) -> Result<Self::Out>;
}
Expand description

A technique for merging responses into a single result (with type Out).

Required Associated Types§

Required Methods§

source

fn merge(&self, input: Vec<Result<In>>) -> Result<Self::Out>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Merge<CleanupLocksResult> for Collect

source§

impl Merge<ResponseWithShard<PessimisticLockResponse, Vec<Mutation>>> for CollectWithShard

§

type Out = Vec<KvPair>

source§

impl<T: Send> Merge<T> for CollectError

§

type Out = Vec<T>