Skip to main content

NfsSync

Trait NfsSync 

Source
pub trait NfsSync: Send + Sync {
    // Required method
    fn commit<'life0, 'async_trait>(
        &'life0 self,
        id: FileId,
    ) -> Pin<Box<dyn Future<Output = NfsResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Optional flush/commit support.

Required Methods§

Source

fn commit<'life0, 'async_trait>( &'life0 self, id: FileId, ) -> Pin<Box<dyn Future<Output = NfsResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Flush any buffered data for a file.

Implementors§