pub trait Checkable: Send + Sync + 'static {
    type Error: StdError + Send + Sync + 'static;

    fn check<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn name(&self) -> Cow<'_, str>; }
Expand description

A resource whose health can be checked

Required Associated Types

The error reported on a failed health check

Required Methods

The action run to check the current health of the element

Ok(()) is interpreted as a passing result. Any Err(_) is interpreted as a failure.

An identifier for the resource

Implementors