Skip to main content

Module failpoints

Module failpoints 

Source
Expand description

Feature-gated failpoint injection for DST.

Compile with --features failpoints to enable injection. Without the feature, the fp!() macro expands to nothing.

Enums§

FailpointAction
Actions a failpoint can take when triggered.

Functions§

check
Check if a failpoint is set and execute its action. Returns Ok(()) if no failpoint or Off, Err if Error action.
clear
Clear a specific failpoint.
clear_all
Clear all failpoints.
set
Set a failpoint action.