open

Function open 

Source
pub async fn open(path: impl AsRef<Path>) -> Result<File>
Expand description

Open a file in read-only mode.

Returns a tokio::fs::File which can be used with the UringFile trait or tokio’s async methods.