pub fn add_streams(
        &mut self,
        stream_id: StreamId,
        send_stream: Box<dyn SendStream>,
        recv_stream: Box<dyn RecvStream>,
    ) {
        if send_stream.has_data_to_send() {
            self.streams_with_pending_data.insert(stream_id);
        }
        self.send_streams.insert(stream_id, send_stream);
        self.recv_streams.insert(stream_id, recv_stream);
    }
/// Adds a new send and receive stream.
Adds a new send and receive stream.
Adds a new send and receive stream .
pub fn add_streams(
        &mut self,
        stream_id: StreamId,
        send_stream: Box<dyn SendStream>,
        recv_stream: Box<dyn RecvStream>,
    ) {
        if send_stream.has_data_to_send() {
            self.streams_with_pending_data.insert(stream_id);
        }
        self.send_streams.insert(stream_id, send_stream);
        self.recv_streams.insert(stream_id, recv_stream);
    }
pub fn add_streams ( & mut self , stream_id : StreamId , send_stream : Box < dyn SendStream > , recv_stream : Box < dyn RecvStream > , ) { if send_stream . has_data_to_send ( ) { self . streams_with_pending_data . insert ( stream_id ) ; } self . send_streams . insert ( stream_id , send_stream ) ; self . recv_streams . insert ( stream_id , recv_stream ) ; }
Adds a new send and receive stream.
Adds a new send and receive stream .
&mut self
stream_id
StreamId
send_stream
Box<dyn SendStream>
recv_stream
Box<dyn RecvStream>