pub struct FlatMapOperator<T, R, F, I>where
I: IntoIterator<Item = R>,
F: Fn(T) -> I,{ /* private fields */ }Implementations§
Source§impl<T, R, F, I> FlatMapOperator<T, R, F, I>where
I: IntoIterator<Item = R>,
F: Fn(T) -> I,
impl<T, R, F, I> FlatMapOperator<T, R, F, I>where
I: IntoIterator<Item = R>,
F: Fn(T) -> I,
Trait Implementations§
Source§impl<T, R, F, I> Operator<T, R> for FlatMapOperator<T, R, F, I>
impl<T, R, F, I> Operator<T, R> for FlatMapOperator<T, R, F, I>
Source§fn process<'life0, 'async_trait>(
&'life0 mut self,
record: Record<T>,
) -> Pin<Box<dyn Future<Output = StreamResult<Vec<Record<R>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn process<'life0, 'async_trait>(
&'life0 mut self,
record: Record<T>,
) -> Pin<Box<dyn Future<Output = StreamResult<Vec<Record<R>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Process a single record and return zero or more output records
Source§fn init<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), StreamError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn init<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), StreamError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Initialize the operator
Auto Trait Implementations§
impl<T, R, F, I> Freeze for FlatMapOperator<T, R, F, I>where
F: Freeze,
impl<T, R, F, I> RefUnwindSafe for FlatMapOperator<T, R, F, I>
impl<T, R, F, I> Send for FlatMapOperator<T, R, F, I>
impl<T, R, F, I> Sync for FlatMapOperator<T, R, F, I>
impl<T, R, F, I> Unpin for FlatMapOperator<T, R, F, I>
impl<T, R, F, I> UnwindSafe for FlatMapOperator<T, R, F, I>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more