StreamOperator

Trait StreamOperator 

Source
pub trait StreamOperator: StreamProcessor {
    // Required method
    fn name(&self) -> &str;
}
Expand description

Stream operator trait

Required Methods§

Source

fn name(&self) -> &str

Get operator name

Implementors§

Source§

impl<F> StreamOperator for FilterOperator<F>
where F: Fn(&Value) -> bool + Send + Sync,

Source§

impl<F> StreamOperator for MapOperator<F>
where F: Fn(Value) -> Value + Send + Sync,

Source§

impl<F, Fut> StreamOperator for AsyncMapOperator<F, Fut>
where F: Fn(Value) -> Fut + Send + Sync, Fut: Future<Output = Value> + Send,

Source§

impl<F, T> StreamOperator for FoldOperator<F, T>
where F: Fn(T, Value) -> T + Send + Sync, T: Clone + Send + Sync + Into<Value> + 'static,