Skip to main content

check

Function check 

Source
pub fn check(name: &str) -> Result<(), String>
Expand description

Check if a failpoint is set and execute its action. Returns Ok(()) if no failpoint or Off, Err if Error action.

ยงPanics

Panics if the internal registry mutex is poisoned, or if the failpoint action is Panic.