async fn state_change(&self, state: RTCDtlsTransportState) {
        self.state.store(state as u8, Ordering::SeqCst);
        let mut handler = self.on_state_change_handler.lock().await;
        if let Some(f) = &mut *handler {
            f(state).await;
        }
    }
/// state_change requires the caller holds the lock
state_change requires the caller holds the lock
state_change requires the caller holds the lock
async fn state_change(&self, state: RTCDtlsTransportState) {
        self.state.store(state as u8, Ordering::SeqCst);
        let mut handler = self.on_state_change_handler.lock().await;
        if let Some(f) = &mut *handler {
            f(state).await;
        }
    }
async fn state_change ( & self , state : RTCDtlsTransportState ) { self . state . store ( state as u8 , Ordering :: SeqCst ) ; let mut handler = self . on_state_change_handler . lock ( ) . await ; if let Some ( f ) = & mut * handler { f ( state ) . await ; } }
state_change requires the caller holds the lock
state_change requires the caller holds the lock
&self
state
RTCDtlsTransportState