pub fn fallible_closure<E: Display, C: FnMut() -> Result<(), E> + 'static + Send>(
    fail_handle: Arc<dyn FailHandle>,
    callback: C
) -> impl FnMut() + 'static + Send
Expand description

Helper function to wrap up a closure with fail handle. The fail handle will be triggered if the closure returns an error.