Trait raftstore::store::peer::AbstractPeer[][src]

pub trait AbstractPeer {
    fn meta_peer(&self) -> &Peer;
fn group_state(&self) -> GroupState;
fn region(&self) -> &Region;
fn apply_state(&self) -> &RaftApplyState;
fn raft_status(&self) -> Status<'_>;
fn raft_commit_index(&self) -> u64;
fn raft_request_snapshot(&mut self, index: u64);
fn pending_merge_state(&self) -> Option<&MergeState>; }

A poor version of Peer to avoid port generic variables everywhere.

Required methods

fn meta_peer(&self) -> &Peer[src]

fn group_state(&self) -> GroupState[src]

fn region(&self) -> &Region[src]

fn apply_state(&self) -> &RaftApplyState[src]

fn raft_status(&self) -> Status<'_>[src]

fn raft_commit_index(&self) -> u64[src]

fn raft_request_snapshot(&mut self, index: u64)[src]

fn pending_merge_state(&self) -> Option<&MergeState>[src]

Loading content...

Implementors

impl<EK: KvEngine, ER: RaftEngine> AbstractPeer for PeerFsm<EK, ER>[src]

Loading content...