Skip to main content

DetachedWriter

Trait DetachedWriter 

Source
pub trait DetachedWriter: Send {
    // Required method
    fn write_detached(
        &mut self,
        to: &Path,
        data: Record,
    ) -> Pin<Box<dyn Future<Output = Result<Path, Error>> + Send>>;
}
Expand description

Async writes whose futures are detached from the store.

See DetachedReader for the rationale.

Required Methods§

Source

fn write_detached( &mut self, to: &Path, data: Record, ) -> Pin<Box<dyn Future<Output = Result<Path, Error>> + Send>>

Begin a write; the returned future resolves independently.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T> DetachedWriter for &mut T
where T: DetachedWriter + ?Sized,

Source§

fn write_detached( &mut self, to: &Path, data: Record, ) -> Pin<Box<dyn Future<Output = Result<Path, Error>> + Send>>

Source§

impl<T> DetachedWriter for Box<T>
where T: DetachedWriter + ?Sized,

Source§

fn write_detached( &mut self, to: &Path, data: Record, ) -> Pin<Box<dyn Future<Output = Result<Path, Error>> + Send>>

Implementors§