Skip to main content

ObservedSync

Trait ObservedSync 

Source
pub trait ObservedSync {
    // Required methods
    fn observed_sync_all(&self) -> Result<()>;
    fn observed_sync_data(&self) -> Result<()>;
}
Expand description

File barriers with the same I/O behavior and optional diagnostic accounting.

Required Methods§

Source

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

Invoke File::sync_all, accounting for the attempt when capturing.

Source

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

Invoke File::sync_data, accounting for the attempt when capturing.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ObservedSync for File

Implementors§