pub async fn sync_data(&mut self) -> io::Result<()> {
        self.complete_inflight().await;

        let std = self.std.clone();
        asyncify(move || std.sync_data()).await
    }
/// This function is similar to `poll_sync_all`, except that it may not
/// synchronize file metadata to the filesystem.
///
/// This is intended for use cases that must synchronize content, but don't
/// need the metadata on disk. The goal of this method is to reduce disk
/// operations.
///
/// Note that some platforms may simply implement this in terms of `poll_sync_all`.
///
/// # Examples
///
/// ```no_run
/// use tokio::fs::File;
/// use tokio::prelude::*;
///
/// # async fn dox() -> std::io::Result<()> {
/// let mut file = File::create("foo.txt").await?;
/// file.write_all(b"hello, world!").await?;
/// file.sync_data().await?;
/// # Ok(())
/// # }
/// ```
This function is similar to `poll_sync_all`, except that it may not
synchronize file metadata to the filesystem.

This is intended for use cases that must synchronize content, but don't
need the metadata on disk. The goal of this method is to reduce disk
operations.

Note that some platforms may simply implement this in terms of `poll_sync_all`.
This function is similar to ` poll_sync_all ` except that it may not synchronize file metadata to the filesystem . This is intended for use cases that must synchronize content but don ' t need the metadata on disk . The goal of this method is to reduce disk operations . Note that some platforms may simply implement this in terms of ` poll_sync_all ` .
pub async fn sync_data(&mut self) -> io::Result<()> {
        self.complete_inflight().await;
        let std = self.std.clone();
        asyncify(move || std.sync_data()).await
    }
pub async fn sync_data ( & mut self ) -> io :: Result < ( ) > { self . complete_inflight ( ) . await ; let std = self . std . clone ( ) ; asyncify ( move | | std . sync_data ( ) ) . await }
This function is similar to `poll_sync_all`, except that it may not
synchronize file metadata to the filesystem.
This function is similar to ` poll_sync_all ` except that it may not synchronize file metadata to the filesystem .
&mut self
&mut self
examples
```no_run
use tokio::fs::File;
use tokio::prelude::*.
` ` ` no_run use tokio :: fs :: File ; use tokio :: prelude :: * .
async fn dox() -> std::io::result<()> {
let mut file = File::create("foo.txt").await?;
file.write_all(b"hello, world!").await?;
file.sync_data().await?.
let mut file = File :: create ( " foo . txt " ) . await? ; file . write_all ( b " hello world! " ) . await? ; file . sync_data () . await? .
ok(())
None
}
None