pub trait FaultInjector: Send + Sync {
// Required method
fn should_fail(&self, point: FaultPoint) -> bool;
}Expand description
Test seam for simulating process loss at durable boundaries.
Required Methods§
Sourcefn should_fail(&self, point: FaultPoint) -> bool
fn should_fail(&self, point: FaultPoint) -> bool
Return true to stop at point and leave normal recovery artifacts.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".