Function fsync

fn fsync<Fd: std::os::fd::AsFd>(fd: Fd) -> Result<()>

Synchronize changes to a file

See also fsync(2)