pub trait Diagnostic: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn run(&self, meta: &Meta) -> (String, Option<Box<dyn Error + Send + Sync>>);
fn needs_cluster(&self) -> bool;
}Expand description
A single diagnostic check.
Required Methods§
Sourcefn run(&self, meta: &Meta) -> (String, Option<Box<dyn Error + Send + Sync>>)
fn run(&self, meta: &Meta) -> (String, Option<Box<dyn Error + Send + Sync>>)
Runs the diagnostic, returning a warning message (empty when healthy) or an error if the check itself failed to run.
Sourcefn needs_cluster(&self) -> bool
fn needs_cluster(&self) -> bool
Whether this diagnostic requires a running cluster.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".