Skip to main content

with_commit_failure

Function with_commit_failure 

Source
pub fn with_commit_failure<F, T>(f: F) -> T
where F: FnOnce() -> T,
Expand description

Run f with a one-shot commit failure armed. Injection is automatically disabled after the closure returns.