pub fn capture_session_to_path<T>(
title: impl Into<String>,
path: impl AsRef<Path>,
run: impl FnOnce() -> T,
) -> Result<T>Expand description
Runs a closure, then writes the captured session to a JSON file.
This is a convenience function that combines capture_session with
write_session_json.