referrerpolicy=no-referrer-when-downgrade
pub fn with_externalities_safe<F, U>(
    ext: &mut dyn Externalities,
    f: F,
) -> Result<U, Error>
where F: UnwindSafe + FnOnce() -> U,
Expand description

Set up the externalities and safe calling environment to execute runtime calls.

If the inner closure panics, it will be caught and return an error.