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]

Loading content...

Implementations on Foreign Types

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

Loading content...

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]

Loading content...