Skip to main content

inject

Function inject 

Source
pub fn inject(fault: Fault) -> Result<(), InjectionError>
Expand description

Inject a fault.

For strict error handling and clarity, this behaves identically to try_inject.

§Errors

Returns an error if the injection fails (e.g. duplicate fail points).