Function message_action

Source
pub fn message_action<I: Clone + Send + Sync + 'static, O, E: Display + Send + 'static, V: Display + Send + 'static, Fut: Future<Output = Result<O, E>> + Send>(
    run: impl Fn(I) -> Fut + Send + Sync + Clone + 'static,
    msg: impl Fn(O) -> V + Send + Sync + Clone + 'static,
) -> Action<I, ()>