Skip to main content

FileWriteGuard

Trait FileWriteGuard 

Source
pub trait FileWriteGuard: Send {
    // Required method
    fn committed<'async_trait>(
        self: Box<Self>,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait;
}
Expand description

A write in progress under a FileFence. Dropping it records nothing.

Required Methods§

Source

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

The write landed.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§