sync

Function sync 

Source
pub fn sync<P: AsRef<Path>>(
    file: Option<P>,
    mode: SyncMode,
) -> Result<(), Error>
Expand description

Sychronize cached writes to persistent storage.