BlockStriderState

Trait BlockStriderState 

Source
pub trait BlockStriderState:
    Send
    + Sync
    + 'static {
    // Required methods
    fn load_last_mc_block_id(&self) -> BlockId;
    fn is_committed(&self, block_id: &BlockId) -> bool;
    fn update_gc_state(&self, ctx: UpdateGcState<'_>) -> Result<()>;
    fn commit_master(&self, ctx: CommitMasterBlock<'_>);
    fn commit_shard(&self, ctx: CommitShardBlock<'_>);
}

Required Methods§

Source

fn load_last_mc_block_id(&self) -> BlockId

Source

fn is_committed(&self, block_id: &BlockId) -> bool

Source

fn update_gc_state(&self, ctx: UpdateGcState<'_>) -> Result<()>

Source

fn commit_master(&self, ctx: CommitMasterBlock<'_>)

Source

fn commit_shard(&self, ctx: CommitShardBlock<'_>)

Implementors§