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.
Implementors
impl RoleObserver for RegionEventListener
[src][+]
impl RoleObserver for CdcObserver
impl RoleObserver for CdcObserver
impl<E: KvEngine> RoleObserver for Observer<E>
impl<E: KvEngine> RoleObserver for Observer<E>
impl RoleObserver for RoleChangeNotifier
impl RoleObserver for RoleChangeNotifier