pub async fn read_to_string(path: impl AsRef<Path>) -> Result<String>Expand description
Read the entire contents of a file into a string.
Returns an error if the file contents are not valid UTF-8.
Unlike std::fs::read_to_string, this does not handle io::ErrorKind::Interrupted because io_uring operations are not interrupted by signals — the kernel completes them asynchronously.