Skip to main content

WriterFactory

Trait WriterFactory 

Source
pub trait WriterFactory {
    type Writer: AsyncWrite + Send + Unpin;

    // Required method
    fn create(
        &mut self,
        file_path: &str,
        write_buffer_size: usize,
    ) -> impl Future<Output = Result<Self::Writer>>;
}

Required Associated Types§

Source

type Writer: AsyncWrite + Send + Unpin

Required Methods§

Source

fn create( &mut self, file_path: &str, write_buffer_size: usize, ) -> impl Future<Output = Result<Self::Writer>>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl WriterFactory for ObjectStoreWriterFactory

Source§

type Writer = Compat<FuturesAsyncWriter>