Function read_file_async
Source pub async fn read_file_async(path: &str) -> Result<String, Error>
Expand description
Async version of read_file that reads a file into a string asynchronously
§Arguments
path - Path to the file to read
§Returns
Ok(String) - The file contents
Err(io::Error) - If the file can’t be read