pub trait WriteStream {
// Required method
fn write(
&mut self,
record_batch: &RecordBatch,
) -> Result<(), DataStreamingError>;
}Expand description
Writes RecordBatch data to output streams.
Required Methods§
Sourcefn write(
&mut self,
record_batch: &RecordBatch,
) -> Result<(), DataStreamingError>
fn write( &mut self, record_batch: &RecordBatch, ) -> Result<(), DataStreamingError>
Writes a RecordBatch to the implementing output stream.
§Errors
Returns a DataStreamingError if writing or finishing the stream fails.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".