pub fn with_idempotence_mode<R>(mode: bool, f: impl FnOnce() -> R) -> R
Executes the given function with the idempotence mode set to the given value.