SessionFactory

Trait SessionFactory 

Source
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.

Implementors§

Source§

impl<E: ErrorType, F: FnOnce(InReceiver<E>, OutSender) -> Pin<Box<dyn Future<Output = Result<(), E>> + Send>>> SessionFactory<E> for F