Skip to main content

AddHealthCheckExt

Trait AddHealthCheckExt 

Source
pub trait AddHealthCheckExt {
    // Required methods
    fn add_health_check<T>(&mut self) -> &mut Self
       where T: Service<Handle = Arc<T>> + HealthCheck + 'static;
    fn has_health_check<T>(&self) -> bool
       where T: Service<Handle = Arc<T>> + HealthCheck + 'static;
}

Required Methods§

Source

fn add_health_check<T>(&mut self) -> &mut Self
where T: Service<Handle = Arc<T>> + HealthCheck + 'static,

Source

fn has_health_check<T>(&self) -> bool
where T: Service<Handle = Arc<T>> + HealthCheck + 'static,

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl AddHealthCheckExt for AppBuilder

Source§

fn add_health_check<T>(&mut self) -> &mut Self
where T: Service<Handle = Arc<T>> + HealthCheck + 'static,

Source§

fn has_health_check<T>(&self) -> bool
where T: Service<Handle = Arc<T>> + HealthCheck + 'static,

Implementors§