[−][src]Function session_types::connect
pub fn connect<F1, F2, P>(srv: F1, cli: F2) where
F1: Fn(Chan<(), P>) + Send + 'static,
F2: Fn(Chan<(), P::Dual>) + Send,
P: HasDual + Send + 'static,
P::Dual: HasDual + Send + 'static,
Connect two functions using a session typed channel.