pub trait ChainTailSegment: ChainSegment {
// Required method
fn process_record<'life0, 'life1, 'async_trait>(
&'life0 mut self,
input: Box<dyn Any + Send>,
runtime: &'life1 mut RuntimeContext,
) -> Pin<Box<dyn Future<Output = StreamResult<Vec<Box<dyn Any + Send>>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Tail chain steps (Map / Filter / FlatMap / Sink): one record in, zero or more out. The last step is always a terminal sink (no downstream records).
Required Methods§
fn process_record<'life0, 'life1, 'async_trait>(
&'life0 mut self,
input: Box<dyn Any + Send>,
runtime: &'life1 mut RuntimeContext,
) -> Pin<Box<dyn Future<Output = StreamResult<Vec<Box<dyn Any + Send>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".