Trait raftstore::coprocessor::AdminObserver[][src]

pub trait AdminObserver: Coprocessor {
    fn pre_propose_admin(
        &self,
        _: &mut ObserverContext<'_>,
        _: &mut AdminRequest
    ) -> Result<()> { ... }
fn pre_apply_admin(&self, _: &mut ObserverContext<'_>, _: &AdminRequest) { ... }
fn post_apply_admin(
        &self,
        _: &mut ObserverContext<'_>,
        _: &mut AdminResponse
    ) { ... } }

Provided methods

fn pre_propose_admin(
    &self,
    _: &mut ObserverContext<'_>,
    _: &mut AdminRequest
) -> Result<()>
[src]

Hook to call before proposing admin request.

fn pre_apply_admin(&self, _: &mut ObserverContext<'_>, _: &AdminRequest)[src]

Hook to call before applying admin request.

fn post_apply_admin(&self, _: &mut ObserverContext<'_>, _: &mut AdminResponse)[src]

Hook to call after applying admin request.

Loading content...

Implementors

impl AdminObserver for SplitObserver[src]

Loading content...