Skip to main content

UpdateFaultInjector

Trait UpdateFaultInjector 

Source
pub trait UpdateFaultInjector: Send + Sync {
    // Required method
    fn check(&self, point: UpdateFaultPoint) -> UpdateResult<()>;
}
Expand description

Fault-injection contract used by deterministic update tests.

Required Methods§

Source

fn check(&self, point: UpdateFaultPoint) -> UpdateResult<()>

Returns an error when execution should fail at point.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§