Trait raftstore::coprocessor::consistency_check::ConsistencyCheckObserver[][src]

pub trait ConsistencyCheckObserver<E: KvEngine>: Coprocessor {
    fn update_context(&self, context: &mut Vec<u8>) -> bool;
fn compute_hash(
        &self,
        region: &Region,
        context: &mut &[u8],
        snap: &E::Snapshot
    ) -> Result<Option<u32>>; }

Required methods

fn update_context(&self, context: &mut Vec<u8>) -> bool[src]

Update context. Return true if later observers should be skiped.

fn compute_hash(
    &self,
    region: &Region,
    context: &mut &[u8],
    snap: &E::Snapshot
) -> Result<Option<u32>>
[src]

Compute hash for region. The policy is extracted from context.

Loading content...

Implementors

impl<E: KvEngine> ConsistencyCheckObserver<E> for Raw<E>[src]

Loading content...