Trait tikv_client::request::Shardable
source · pub trait Shardable {
type Shard: Clone + Send + Sync;
// Required methods
fn shards(
&self,
pd_client: &Arc<impl PdClient>
) -> BoxStream<'static, Result<(Self::Shard, RegionStore)>>;
fn apply_shard(
&mut self,
shard: Self::Shard,
store: &RegionStore
) -> Result<()>;
}
Required Associated Types§
Required Methods§
fn shards( &self, pd_client: &Arc<impl PdClient> ) -> BoxStream<'static, Result<(Self::Shard, RegionStore)>>
fn apply_shard(&mut self, shard: Self::Shard, store: &RegionStore) -> Result<()>
Object Safety§
This trait is not object safe.