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§
Sourcefn observed_sync_all(&self) -> Result<()>
fn observed_sync_all(&self) -> Result<()>
Invoke File::sync_all, accounting for the attempt when capturing.
Sourcefn observed_sync_data(&self) -> Result<()>
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".