Trait raftstore::store::peer_storage::HandleRaftReadyContext[][src]

pub trait HandleRaftReadyContext<WK, WR> where
    WK: Mutable,
    WR: RaftLogBatch
{ fn wb_mut(&mut self) -> (&mut WK, &mut WR);
fn kv_wb_mut(&mut self) -> &mut WK;
fn raft_wb_mut(&mut self) -> &mut WR;
fn sync_log(&self) -> bool;
fn set_sync_log(&mut self, sync: bool); }

Required methods

fn wb_mut(&mut self) -> (&mut WK, &mut WR)[src]

Returns the mutable references of WriteBatch for both KvDB and RaftDB in one interface.

fn kv_wb_mut(&mut self) -> &mut WK[src]

fn raft_wb_mut(&mut self) -> &mut WR[src]

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

fn set_sync_log(&mut self, sync: bool)[src]

Loading content...

Implementors

impl<EK, ER, T> HandleRaftReadyContext<<EK as WriteBatchExt>::WriteBatch, <ER as RaftEngine>::LogBatch> for PollContext<EK, ER, T> where
    EK: KvEngine,
    ER: RaftEngine
[src]

Loading content...