1
2
3
4
5
6
7
use std::{future::Future, pin::Pin};

use crate::{message::Message, response::Response};

pub trait RouterFunction: Send + Sync {
    fn route(&self, msg: Message) -> Pin<Box<dyn Future<Output = Response> + Send>>;
}