pub struct HealthCheckProvider { /* private fields */ }Expand description
Health check provider wrapper
Implementations§
Source§impl HealthCheckProvider
impl HealthCheckProvider
Sourcepub fn new(provider: Box<dyn LlmProvider>, config: HealthCheckConfig) -> Self
pub fn new(provider: Box<dyn LlmProvider>, config: HealthCheckConfig) -> Self
Create a new health-checked provider
Sourcepub async fn get_status(&self) -> HealthStatus
pub async fn get_status(&self) -> HealthStatus
Get current health status
Sourcepub async fn get_stats(&self) -> HealthStats
pub async fn get_stats(&self) -> HealthStats
Get health statistics
Trait Implementations§
Source§impl LlmProvider for HealthCheckProvider
impl LlmProvider for HealthCheckProvider
Auto Trait Implementations§
impl Freeze for HealthCheckProvider
impl !RefUnwindSafe for HealthCheckProvider
impl Send for HealthCheckProvider
impl Sync for HealthCheckProvider
impl Unpin for HealthCheckProvider
impl !UnwindSafe for HealthCheckProvider
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