pub async fn on_connection_state_change(&self, f: OnConnectionStateChangeHdlrFn) {
        let mut on_connection_state_change_handler =
            self.on_connection_state_change_handler.lock().await;
        *on_connection_state_change_handler = Some(f);
    }
/// on_connection_state_change sets a handler that is fired when the ICE
/// connection state changes.
on_connection_state_change sets a handler that is fired when the ICE
connection state changes.
on_connection_state_change sets a handler that is fired when the ICE connection state changes .
pub async fn on_connection_state_change(&self, f: OnConnectionStateChangeHdlrFn) {
        let mut on_connection_state_change_handler =
            self.on_connection_state_change_handler.lock().await;
        *on_connection_state_change_handler = Some(f);
    }
pub async fn on_connection_state_change ( & self , f : OnConnectionStateChangeHdlrFn ) { let mut on_connection_state_change_handler = self . on_connection_state_change_handler . lock ( ) . await ; * on_connection_state_change_handler = Some ( f ) ; }
on_connection_state_change sets a handler that is fired when the ICE
connection state changes.
on_connection_state_change sets a handler that is fired when the ICE connection state changes .
&self
f
OnConnectionStateChangeHdlrFn