pub struct ClusterManager {}Expand description
Manages the background task that periodically attempts to renew leadership.
Implementations§
Source§impl ClusterManager
impl ClusterManager
Sourcepub fn start_election_loop<E: LeaderElection + 'static>(
election: Arc<E>,
interval: Duration,
) -> JoinHandle<()>
pub fn start_election_loop<E: LeaderElection + 'static>( election: Arc<E>, interval: Duration, ) -> JoinHandle<()>
Starts a background task that periodically polls the leader election
Auto Trait Implementations§
impl Freeze for ClusterManager
impl RefUnwindSafe for ClusterManager
impl Send for ClusterManager
impl Sync for ClusterManager
impl Unpin for ClusterManager
impl UnsafeUnpin for ClusterManager
impl UnwindSafe for ClusterManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more