Trait raftstore::coprocessor::RoleObserver [−][src]
Provided methods
fn on_role_change(&self, _: &mut ObserverContext<'_>, _: StateRole)
[src]
Hook to call when role of a peer changes.
Please note that, this hook is not called at realtime. There maybe a situation that the hook is not called yet, however the role of some peers have changed.