pub trait DoctorChecks {
// Required methods
fn repo_info() -> RepoInfo;
fn current_version() -> &'static str;
// Provided method
fn tool_checks(&self) -> Vec<DoctorCheck> { ... }
}Expand description
Trait for tools that support doctor health checks.
Implement this trait to provide tool-specific health checks.
Required Methods§
Sourcefn current_version() -> &'static str
fn current_version() -> &'static str
Get the current version of this tool.
Provided Methods§
Sourcefn tool_checks(&self) -> Vec<DoctorCheck>
fn tool_checks(&self) -> Vec<DoctorCheck>
Run tool-specific health checks.
Return a vector of check results. Default implementation returns empty vector.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.