pub async fn on_peer_connection_state_change(&self, f: OnPeerConnectionStateChangeHdlrFn) {
        let mut on_peer_connection_state_change_handler = self
            .internal
            .on_peer_connection_state_change_handler
            .lock()
            .await;
        *on_peer_connection_state_change_handler = Some(f);
    }
/// on_peer_connection_state_change sets an event handler which is called
/// when the PeerConnectionState has changed
on_peer_connection_state_change sets an event handler which is called
when the PeerConnectionState has changed
on_peer_connection_state_change sets an event handler which is called when the PeerConnectionState has changed
pub async fn on_peer_connection_state_change(&self, f: OnPeerConnectionStateChangeHdlrFn) {
        let mut on_peer_connection_state_change_handler = self
            .internal
            .on_peer_connection_state_change_handler
            .lock()
            .await;
        *on_peer_connection_state_change_handler = Some(f);
    }
pub async fn on_peer_connection_state_change ( & self , f : OnPeerConnectionStateChangeHdlrFn ) { let mut on_peer_connection_state_change_handler = self . internal . on_peer_connection_state_change_handler . lock ( ) . await ; * on_peer_connection_state_change_handler = Some ( f ) ; }
on_peer_connection_state_change sets an event handler which is called
when the PeerConnectionState has changed
on_peer_connection_state_change sets an event handler which is called when the PeerConnectionState has changed
&self
f
OnPeerConnectionStateChangeHdlrFn