Skip to main content

DatasetWriter

Trait DatasetWriter 

Source
pub trait DatasetWriter: Send + Sync {
    // Required method
    fn write<'life0, 'life1, 'async_trait>(
        &'life0 self,
        records: BoxRecordStream,
        path: &'life1 Path,
    ) -> Pin<Box<dyn Future<Output = AppResult<usize>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Streaming writer for structured dataset records.

Required Methods§

Source

fn write<'life0, 'life1, 'async_trait>( &'life0 self, records: BoxRecordStream, path: &'life1 Path, ) -> Pin<Box<dyn Future<Output = AppResult<usize>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Write records to path, returning the number of records written.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§