pub fn sync<P: AsRef<Path>>( file: Option<P>, mode: SyncMode, ) -> Result<(), Error>
Sychronize cached writes to persistent storage.