pub trait SessionFactory<E: ErrorType>: FnOnce(InReceiver<E>, OutSender) -> Pin<Box<dyn Future<Output = Result<(), E>> + Send>> { }Expand description
Creates a session which receives and sends messages on the provided receiver and sender respectively.