Skip to main content

Diagnostic

Trait Diagnostic 

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

Source

fn name(&self) -> &str

The diagnostic’s display name.

Source

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.

Source

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".

Implementors§