Trait engine_traits::RaftLogBatch[][src]

pub trait RaftLogBatch: Send {
    fn append(&mut self, raft_group_id: u64, entries: Vec<Entry>) -> Result<()>;
fn cut_logs(&mut self, raft_group_id: u64, from: u64, to: u64);
fn put_raft_state(
        &mut self,
        raft_group_id: u64,
        state: &RaftLocalState
    ) -> Result<()>;
fn is_empty(&self) -> bool; }

Required methods

fn append(&mut self, raft_group_id: u64, entries: Vec<Entry>) -> Result<()>[src]

Note: RaftLocalState won’t be updated in this call.

fn cut_logs(&mut self, raft_group_id: u64, from: u64, to: u64)[src]

Remove Raft logs in [from, to) which will be overwritten later.

fn put_raft_state(
    &mut self,
    raft_group_id: u64,
    state: &RaftLocalState
) -> Result<()>
[src]

fn is_empty(&self) -> bool[src]

Loading content...

Implementors

Loading content...