Skip to main content

DetectorProbe

Trait DetectorProbe 

Source
pub trait DetectorProbe: Send + Sync {
    // Required method
    fn check(&self) -> BoxFuture<'_, Result<String, String>>;
}
Expand description

What asks the failure detector whether it is answering.

Required Methods§

Source

fn check(&self) -> BoxFuture<'_, Result<String, String>>

Answers what it was told: Ok when the detector answered its health check, Err when it did not, each in words.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§