pub struct HealthCheckToolImpl { /* private fields */ }Expand description
Implementation of the health check tool
Handles the execution of health checks for the server and external services, including docs.rs and crates.io availability checks.
Implementations§
Source§impl HealthCheckToolImpl
impl HealthCheckToolImpl
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new health check tool instance
Initializes the tool with the current time as the server start time for uptime calculation purposes.
Sourcepub async fn run_check_report(
&self,
check_type: &str,
verbose: bool,
) -> (String, bool)
pub async fn run_check_report( &self, check_type: &str, verbose: bool, ) -> (String, bool)
Run a health check for CLI usage.
Returns the rendered report and whether the overall status is healthy
(true only when every individual check is healthy). Callers can use the
boolean to set a process exit code so container/orchestrator health
probes behave correctly.
Trait Implementations§
Source§impl Default for HealthCheckToolImpl
impl Default for HealthCheckToolImpl
Source§impl Tool for HealthCheckToolImpl
impl Tool for HealthCheckToolImpl
Source§fn definition(&self) -> Tool
fn definition(&self) -> Tool
Get tool definition Read more
Auto Trait Implementations§
impl Freeze for HealthCheckToolImpl
impl RefUnwindSafe for HealthCheckToolImpl
impl Send for HealthCheckToolImpl
impl Sync for HealthCheckToolImpl
impl Unpin for HealthCheckToolImpl
impl UnsafeUnpin for HealthCheckToolImpl
impl UnwindSafe for HealthCheckToolImpl
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