read

Function read 

Source
pub async fn read<P>(path: P) -> Result<Vec<u8>, Error>
where P: AsRef<Path>,
Available on crate feature fs only.
Expand description

Read the entire contents of a file into a bytes vector.