Trait vector::sinks::util::service::HealthLogic

source ·
pub trait HealthLogic: Clone + Send + Sync + 'static {
    type Error: Send + Sync + 'static;
    type Response;

    // Required method
    fn is_healthy(
        &self,
        response: &Result<Self::Response, Self::Error>,
    ) -> Option<bool>;
}

Required Associated Types§

source

type Error: Send + Sync + 'static

source

type Response

Required Methods§

source

fn is_healthy( &self, response: &Result<Self::Response, Self::Error>, ) -> Option<bool>

Returns health of the endpoint based on the response/error. None if there is not enough information to determine it.

Object Safety§

This trait is not object safe.

Implementors§