Function cubist_proxy::connector::passthru_pair
source · pub fn passthru_pair<S, R, E>(
) -> (impl Pair<S, R, E> + Unpin, impl Pair<R, S, E> + Unpin)where
S: Send,
R: Send,
E: Send,
Expand description
Provides an entangled pair of Pair
s such that a write to the left
side appears as a read on the right side, and vice-versa.
Use this function when you need two endpoints that both implement
Pair
. Because of the types of Pair
and Connector
, it is not
possible for the endpoints created by passthru
to do so.