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§
Required Methods§
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", so this trait is not object safe.