AsyncTransformAdvanced

Trait AsyncTransformAdvanced 

Source
pub trait AsyncTransformAdvanced<X, Output = X> {
    type Error: Error + Send + Sync;

    // Required methods
    fn transform_async_with_progress<'a>(
        &'a self,
        x: &'a X,
        config: &'a AsyncConfig,
    ) -> Pin<Box<dyn Future<Output = Result<Output>> + Send + 'a>>;
    fn transform_stream<'a>(
        &'a self,
        x_stream: Pin<Box<dyn Stream<Item = X> + Send + 'a>>,
        config: &'a AsyncConfig,
    ) -> Pin<Box<dyn Stream<Item = Result<Output>> + Send + 'a>>;
    fn transform_async_chunked<'a>(
        &'a self,
        x: &'a X,
        chunk_size: usize,
    ) -> Pin<Box<dyn Stream<Item = Result<Output>> + Send + 'a>>;
}
Expand description

Enhanced async transform trait with streaming support

Required Associated Types§

Source

type Error: Error + Send + Sync

Error type

Required Methods§

Source

fn transform_async_with_progress<'a>( &'a self, x: &'a X, config: &'a AsyncConfig, ) -> Pin<Box<dyn Future<Output = Result<Output>> + Send + 'a>>

Transform data asynchronously with progress tracking

Source

fn transform_stream<'a>( &'a self, x_stream: Pin<Box<dyn Stream<Item = X> + Send + 'a>>, config: &'a AsyncConfig, ) -> Pin<Box<dyn Stream<Item = Result<Output>> + Send + 'a>>

Stream data transformation

Source

fn transform_async_chunked<'a>( &'a self, x: &'a X, chunk_size: usize, ) -> Pin<Box<dyn Stream<Item = Result<Output>> + Send + 'a>>

Transform with memory-efficient chunking

Implementors§