pub async fn sync_all(file: Arc<File>) -> Result<(), Error>
Flush file’s data and metadata to the device.
file
As File::sync_all.
File::sync_all