Skip to main content

SyncHandle

Trait SyncHandle 

Source
pub trait SyncHandle: Send + Sync {
    // Required method
    fn sync_data(&self) -> Result<()>;
}
Expand description

A file kept open so its data can be made durable again and again.

Required Methods§

Source

fn sync_data(&self) -> Result<()>

Makes the file’s data durable (fdatasync).

§Errors

The I/O error the sync reported, a failed writeback among them.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl SyncHandle for File

Implementors§