Skip to main content

HealthCheck

Trait HealthCheck 

Source
pub trait HealthCheck {
    // Required method
    fn check(&self) -> Health;
}
Expand description

Probes a freshly-applied version to decide whether it commits or rolls back.

Required Methods§

Source

fn check(&self) -> Health

Probe the applied version. Health::Healthy commits; anything else triggers the auto-rollback.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<F> HealthCheck for F
where F: Fn() -> Health,