pub fn insert_transport(&mut self, transport: WebRtcTransport, is_consumer: bool) {
        if is_consumer {
            self.current_ct_id = transport.id().to_string();
            println!("inserting consumer transport id; {:?}", transport.id());
            self.consumer_transports
                .insert(self.current_ct_id.clone(), transport);
        } else {
            self.current_pt_id = transport.id().to_string();
            self.producer_transports
                .insert(self.current_pt_id.clone(), transport);
        }
    }
///
/// This function inserts new transport for user.
///
This function inserts new transport for user.
This function inserts new transport for user .
pub fn insert_transport(&mut self, transport: WebRtcTransport, is_consumer: bool) {
        if is_consumer {
            self.current_ct_id = transport.id().to_string();
            println!("inserting consumer transport id; {:?}", transport.id());
            self.consumer_transports
                .insert(self.current_ct_id.clone(), transport);
        } else {
            self.current_pt_id = transport.id().to_string();
            self.producer_transports
                .insert(self.current_pt_id.clone(), transport);
        }
    }
pub fn insert_transport ( & mut self , transport : WebRtcTransport , is_consumer : bool ) { if is_consumer { self . current_ct_id = transport . id ( ) . to_string ( ) ; println ! ( " " transport id ( ) ) ; self . consumer_transports . insert ( self . current_ct_id . clone ( ) , transport ) ; } else { self . current_pt_id = transport . id ( ) . to_string ( ) ; self . producer_transports . insert ( self . current_pt_id . clone ( ) , transport ) ; } }
This function inserts new transport for user.
This function inserts new transport for user .
&mut self
transport
WebRtcTransport
is_consumer
bool
&mut self
transport
WebRtcTransport
is_consumer
bool