returns CSSender and CSReceiver, which are not public / re-exported in the asynchronous module. This is fine if the sender/receiver are only used locally, but prevents them from being passed to a function / stored in a struct.
Expected result
The types returned by split can be passed to functions / structs.
Actual result
Compile error:
20 | use ttrpc::asynchronous::stream::{CSSender, CSReceiver};
| ^^^^^^ private module
|
or
21 | use ttrpc::asynchronous::{CSSender, CSReceiver};
| ^^^^^^^^ ^^^^^^^^^^ no `CSReceiver` in `asynchronous`
| |
| no `CSSender` in `asynchronous`
Description of problem
The current implementation:
returns CSSender and CSReceiver, which are not public / re-exported in the asynchronous module. This is fine if the sender/receiver are only used locally, but prevents them from being passed to a function / stored in a struct.
Expected result
The types returned by
split
can be passed to functions / structs.Actual result
Compile error:
or