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§
Sourcefn 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,
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".