with_current_dir_async

Function with_current_dir_async 

Source
pub async fn with_current_dir_async<F, R>(dir: &Path, f: F) -> Result<R>
where F: AsyncFnOnce() -> Result<R>,
Expand description

Temporarily changes the current working directory while executing an asynchronous closure.