pub trait LeaderElector: Send + Sync {
// Required method
fn start<'life0, 'async_trait>(
&'life0 self,
identity: PlatformIdentity,
) -> Pin<Box<dyn Future<Output = Result<LeadershipHandle, PlatformError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Leader election abstraction.
The elector owns the renew loop — callers do not manage timers.
One-shot: start() may only be called once per instance.