Struct raftstore::store::fsm::store::RaftRouter[][src]

pub struct RaftRouter<EK, ER> where
    EK: KvEngine,
    ER: RaftEngine
{ pub router: BatchRouter<PeerFsm<EK, ER>, StoreFsm<EK>>, }

Fields

router: BatchRouter<PeerFsm<EK, ER>, StoreFsm<EK>>

Implementations

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

pub fn send_raft_message(
    &self,
    msg: RaftMessage
) -> Result<(), TrySendError<RaftMessage>>
[src]

pub fn send_raft_command(
    &self,
    cmd: RaftCommand<EK::Snapshot>
) -> Result<(), TrySendError<RaftCommand<EK::Snapshot>>>
[src]

fn report_unreachable(&self, store_id: u64)[src]

fn report_status_update(&self)[src]

pub fn report_resolved(&self, store_id: u64, group_id: u64)[src]

Broadcasts resolved result to all regions.

pub fn register(&self, region_id: u64, mailbox: BasicMailbox<PeerFsm<EK, ER>>)[src]

pub fn register_all(&self, mailboxes: Vec<(u64, BasicMailbox<PeerFsm<EK, ER>>)>)[src]

pub fn close(&self, region_id: u64)[src]

pub fn clear_cache(&self)[src]

fn update_trace(&self)[src]

Trait Implementations

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

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

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

type Target = BatchRouter<PeerFsm<EK, ER>, StoreFsm<EK>>

The resulting type after dereferencing.

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

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

impl<EK, ER> ProposalRouter<<EK as KvEngine>::Snapshot> for RaftRouter<EK, ER> where
    EK: KvEngine,
    ER: RaftEngine
[src]

impl<EK: KvEngine, ER: RaftEngine> RaftStoreRouter<EK> for RaftRouter<EK, ER>[src]

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

Auto Trait Implementations

impl<EK, ER> !RefUnwindSafe for RaftRouter<EK, ER>

impl<EK, ER> Send for RaftRouter<EK, ER>

impl<EK, ER> !Sync for RaftRouter<EK, ER>

impl<EK, ER> Unpin for RaftRouter<EK, ER>

impl<EK, ER> UnwindSafe for RaftRouter<EK, ER>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<V, W> ConvertFrom<W> for V where
    W: ConvertTo<V>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]