pub trait ParallelTransportWriter {
// Required methods
fn schema(&self) -> &[Field];
fn stream_count(&self) -> usize;
fn write_table(
&mut self,
table: impl Into<TableV> + Send,
) -> impl Future<Output = Result<()>> + Send;
fn write_all_tables(
&mut self,
tables: Vec<impl Into<TableV> + Send>,
) -> impl Future<Output = Result<()>> + Send;
fn finish(self) -> impl Future<Output = Result<()>> + Send
where Self: Sized;
}Expand description
Writes tables across multiple concurrent transport streams.
Required Methods§
Sourcefn stream_count(&self) -> usize
fn stream_count(&self) -> usize
Returns the number of active streams.
Sourcefn write_table(
&mut self,
table: impl Into<TableV> + Send,
) -> impl Future<Output = Result<()>> + Send
fn write_table( &mut self, table: impl Into<TableV> + Send, ) -> impl Future<Output = Result<()>> + Send
Writes a table to the next stream in round-robin order.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".