Trait raftstore::store::transport::CasualRouter[][src]

pub trait CasualRouter<EK>: Send where
    EK: KvEngine
{ fn send(&self, region_id: u64, msg: CasualMessage<EK>) -> Result<()>; }
[]

Routes message to target region.

Messages are not guaranteed to be delivered by this trait.

Required methods

fn send(&self, region_id: u64, msg: CasualMessage<EK>) -> Result<()>[src]

Implementations on Foreign Types

impl<EK> CasualRouter<EK> for SyncSender<(u64, CasualMessage<EK>)> where
    EK: KvEngine
[src][]

Implementors

impl<EK, ER> CasualRouter<EK> for RaftRouter<EK, ER> where
    EK: KvEngine,
    ER: RaftEngine
[src][+]

impl<EK: KvEngine> CasualRouter<EK> for RaftStoreBlackHole[src][+]

impl<EK: KvEngine, ER: RaftEngine> CasualRouter<EK> for ServerRaftStoreRouter<EK, ER>[src][+]

impl CasualRouter<RocksEngine> for MockRaftStoreRouter

impl<C: RaftStoreRouter<RocksEngine>> CasualRouter<RocksEngine> for SimulateTransport<C>