pub fn open_for_async_read(path: impl AsRef<Path>) -> Result<File>Expand description
Open a file for reading through the kernel async ring. On Windows the
handle must carry FILE_FLAG_OVERLAPPED for IoRing; on Linux and
FreeBSD a plain read handle is fine. Keep the returned File alive
while its reads are in flight.