Skip to main content

TransformOperator

Trait TransformOperator 

Source
pub trait TransformOperator: StreamOperator {
    // Required method
    fn transform<'life0, 'async_trait>(
        &'life0 mut self,
        element: StreamElement,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<StreamElement>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

A transform operator that modifies stream elements.

Required Methods§

Source

fn transform<'life0, 'async_trait>( &'life0 mut self, element: StreamElement, ) -> Pin<Box<dyn Future<Output = Result<Vec<StreamElement>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Transform a single element.

Implementors§