DoctorChecks

Trait DoctorChecks 

Source
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§

Source

fn repo_info() -> RepoInfo

Get the repository information for this tool.

Source

fn current_version() -> &'static str

Get the current version of this tool.

Provided Methods§

Source

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.

Implementors§