pub struct NoopLeadershipService;Expand description
No-op leadership service. Correct for single-node deployments and tests that do not need real K8s.
Allows multiple start() calls for the same lock name — each returns an
independent LeadershipHandle. This matches the master: semantics where
multiple routes can compete for the same lock.
Implementations§
Trait Implementations§
Source§impl Default for NoopLeadershipService
impl Default for NoopLeadershipService
Auto Trait Implementations§
impl Freeze for NoopLeadershipService
impl RefUnwindSafe for NoopLeadershipService
impl Send for NoopLeadershipService
impl Sync for NoopLeadershipService
impl Unpin for NoopLeadershipService
impl UnsafeUnpin for NoopLeadershipService
impl UnwindSafe for NoopLeadershipService
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