Forward
fn forward<N, C, A>(n: N) -> PartialSession<C, A>
C
is in the formHList![…, N: A, …]
with the remaining elements beingEmpty
.
Example:
let p: Session<
ReceiveChannel<ReceiveValue<String, End>, ReceiveValue<String, End>>,
> = receive_channel(move |c| forward(c));