Forward

fn forward<N, C, A>(n: N) -> PartialSession<C, A>
  • C is in the form HList![…, N: A, …] with the remaining elements being Empty.

Example:

  let p: Session<
    ReceiveChannel<ReceiveValue<String, End>, ReceiveValue<String, End>>,
  > = receive_channel(move |c| forward(c));