heim_runtime::fs

Function read_to_string

Source
pub fn read_to_string<T>(path: T) -> impl Future<Output = Result<String>>
where T: AsRef<Path> + Send + Unpin + 'static,
Expand description

Read path file asynchronously and convert it contents into a string.