pub async fn connect_producer_transport(
        &self,
        connect_msg: ConnectProducerTransportRequest,
    ) -> Result<(), RequestError> {
        let ConnectProducerTransportRequest {
            user_id: _,
            dtls_parameters,
            transport_id,
        } = connect_msg;
        if let Some(transport) = self.producer_transports.get(&transport_id) {
            transport
                .connect(WebRtcTransportRemoteParameters { dtls_parameters })
                .await?;
        }
        Ok(())
    }
///
/// This function connects backend's producer transport to client side transport
///
This function connects backend's producer transport to client side transport
This function connects backend ' s producer transport to client side transport
pub async fn connect_producer_transport(
        &self,
        connect_msg: ConnectProducerTransportRequest,
    ) -> Result<(), RequestError> {
        let ConnectProducerTransportRequest {
            user_id: _,
            dtls_parameters,
            transport_id,
        } = connect_msg;
        if let Some(transport) = self.producer_transports.get(&transport_id) {
            transport
                .connect(WebRtcTransportRemoteParameters { dtls_parameters })
                .await?;
        }
        Ok(())
    }
pub async fn connect_producer_transport ( & self , connect_msg : ConnectProducerTransportRequest , ) -> Result < ( ) , RequestError > { let ConnectProducerTransportRequest { user_id : _ , dtls_parameters , transport_id , } = connect_msg ; if let Some ( transport ) = self . producer_transports . get ( & transport_id ) { transport . connect ( WebRtcTransportRemoteParameters { dtls_parameters } ) . await ? ; } Ok ( ( ) ) }
This function connects backend's producer transport to client side transport
This function connects backend ' s producer transport to client side transport
&self
connect_msg
ConnectProducerTransportRequest
&self
connect_msg
ConnectProducerTransportRequest