pub trait IComponentFunction<TMessage, TConfig>: Send {
    // Required method
    fn call(
        &self,
        stream_input: Input<TMessage>,
        stream_output: Output<TMessage>,
        config: TConfig
    ) -> BoxFuture<'static, ()>;
}
Expand description

Трейт для функции компонента

Required Methods§

source

fn call( &self, stream_input: Input<TMessage>, stream_output: Output<TMessage>, config: TConfig ) -> BoxFuture<'static, ()>

Implementors§

source§

impl<T, F, TMessage, TConfig> IComponentFunction<TMessage, TConfig> for T
where T: Fn(Input<TMessage>, Output<TMessage>, TConfig) -> F + Send, F: Future<Output = ()> + 'static + Send,