pub struct HealthChecker { /* private fields */ }Expand description
Performs periodic HTTP health checks against every backend in the pool and
updates the pool’s healthy flags accordingly.
Implementations§
Source§impl HealthChecker
impl HealthChecker
Sourcepub fn start(pool: Arc<UpstreamPool>, config: &HealthCheckConfig) -> Self
pub fn start(pool: Arc<UpstreamPool>, config: &HealthCheckConfig) -> Self
Spawn an active health-check loop. Returns immediately; the checks run on a background Tokio task.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HealthChecker
impl RefUnwindSafe for HealthChecker
impl Send for HealthChecker
impl Sync for HealthChecker
impl Unpin for HealthChecker
impl UnsafeUnpin for HealthChecker
impl UnwindSafe for HealthChecker
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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