pub struct HaManager { /* private fields */ }Expand description
Central coordinator for the HA subsystem.
Owns the CaPool and HealthChecker, wiring health state updates
into pool availability decisions. The pool uses the configured
FailoverStrategy to select a CA for each enrollment request.
Implementations§
Source§impl HaManager
impl HaManager
Sourcepub fn new(pool: Arc<CaPool>, health_config: HealthConfig) -> Self
pub fn new(pool: Arc<CaPool>, health_config: HealthConfig) -> Self
Build a new HA manager from pool and health configuration.
Sourcepub async fn start(&self)
pub async fn start(&self)
Start background health checking.
Spawns a tokio task that periodically probes each CA backend and
updates the pool’s availability map. The task runs until
HaManager::shutdown is called.
Auto Trait Implementations§
impl Freeze for HaManager
impl !RefUnwindSafe for HaManager
impl Send for HaManager
impl Sync for HaManager
impl Unpin for HaManager
impl UnsafeUnpin for HaManager
impl !UnwindSafe for HaManager
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more