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