pub fn new(tx: Sender<MultiMessage<P, R>>, rx: Receiver<MultiMessage<P, R>>) -> Self {
        Self {
            errors: ErrorChan::new(),
            demux: Demultiplexer::new(rx),
            mux: Multiplexer::new(tx),
        }
    }
/// Create a new `MultiChannel` by passing it the channels it can use to
/// send/receive messages to/from the underlying network connection.
Create a new `MultiChannel` by passing it the channels it can use to
send/receive messages to/from the underlying network connection.
Create a new ` MultiChannel ` by passing it the channels it can use to send / receive messages to / from the underlying network connection .
pub fn new(tx: Sender<MultiMessage<P, R>>, rx: Receiver<MultiMessage<P, R>>) -> Self {
        Self {
            errors: ErrorChan::new(),
            demux: Demultiplexer::new(rx),
            mux: Multiplexer::new(tx),
        }
    }
pub fn new ( tx : Sender < MultiMessage < P , R > > , rx : Receiver < MultiMessage < P , R > > ) -> Self { Self { errors : ErrorChan :: new ( ) , demux : Demultiplexer :: new ( rx ) , mux : Multiplexer :: new ( tx ) , } }
Create a new `MultiChannel` by passing it the channels it can use to
send/receive messages to/from the underlying network connection.
Create a new ` MultiChannel ` by passing it the channels it can use to send / receive messages to / from the underlying network connection .
tx
Sender<MultiMessage<P, R>>
rx
Receiver<MultiMessage<P, R>>