Skip to main content

SyncableFile

Trait SyncableFile 

Source
pub trait SyncableFile:
    AsyncWrite
    + Unpin
    + Send {
    // Required method
    fn sync_all<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait;
}

Required Methods§

Source

fn sync_all<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl SyncableFile for BufWriter<File>

Source§

fn sync_all<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where BufWriter<File>: 'async_trait,

Source§

impl SyncableFile for File

Source§

fn sync_all<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where File: 'async_trait,

Implementors§