pub fn run<F, T>(context: &dyn Context, f: F) -> Result<T, Error>
where F: FnOnce() -> T,