pub fn fsync<Fd: AsFd>(fd: &Fd) -> Result<()>
fsync(fd)—Ensures that file data and metadata is written to the underlying storage device.
fsync(fd)