pub fn divide_stream<TAsyncDuplex: AsyncRead + AsyncWrite + Send + Unpin + ?Sized + 'static>(
stream: Box<TAsyncDuplex>,
) -> (Box<dyn Channel>, Box<dyn Channel>)
Expand description
Divides a stream into two. Returns two channels since channels are more powerful while still implement the same traits as the streams do.