pub trait ProgrammaticHealthRunner {
// Required method
fn run_programmatic_health(
&self,
options: &ComplexityOptions,
) -> Result<ProgrammaticHealthRun, ProgrammaticError>;
// Provided method
fn refuses_config_type_aware(&self) -> bool { ... }
}Expand description
Runner boundary for programmatic health.
This keeps embedders on the typed API contract while still allowing tests and host integrations to provide a custom health runner.
Required Methods§
Sourcefn run_programmatic_health(
&self,
options: &ComplexityOptions,
) -> Result<ProgrammaticHealthRun, ProgrammaticError>
fn run_programmatic_health( &self, options: &ComplexityOptions, ) -> Result<ProgrammaticHealthRun, ProgrammaticError>
Run health analysis for public programmatic options.
§Errors
Returns a structured programmatic error when the concrete runner cannot resolve options or complete health analysis.
Provided Methods§
Sourcefn refuses_config_type_aware(&self) -> bool
fn refuses_config_type_aware(&self) -> bool
Whether Self::run_programmatic_health refuses config-sourced
type-aware analysis itself, from the config that it loads. With the
default false, run_health_with_runner reads the config for the
check before the runner starts.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".