pub async fn stop(&self) -> Result<()> {
        self.set_state(RTCIceTransportState::Closed);

        let mut errs: Vec<Error> = vec![];
        {
            let mut internal = self.internal.lock().await;
            internal.cancel_tx.take();
            if let Some(mut mux) = internal.mux.take() {
                mux.close().await;
            }
            if let Some(conn) = internal.conn.take() {
                if let Err(err) = conn.close().await {
                    errs.push(err.into());
                }
            }
        }

        if let Err(err) = self.gatherer.close().await {
            errs.push(err);
        }

        flatten_errs(errs)
    }
/// Stop irreversibly stops the ICETransport.
Stop irreversibly stops the ICETransport.
Stop irreversibly stops the ICETransport .
pub async fn stop(&self) -> Result<()> {
        self.set_state(RTCIceTransportState::Closed);
        let mut errs: Vec<Error> = vec![];
        {
            let mut internal = self.internal.lock().await;
            internal.cancel_tx.take();
            if let Some(mut mux) = internal.mux.take() {
                mux.close().await;
            }
            if let Some(conn) = internal.conn.take() {
                if let Err(err) = conn.close().await {
                    errs.push(err.into());
                }
            }
        }
        if let Err(err) = self.gatherer.close().await {
            errs.push(err);
        }
        flatten_errs(errs)
    }
pub async fn stop ( & self ) -> Result < ( ) > { self . set_state ( RTCIceTransportState :: Closed ) ; let mut errs : Vec < Error > = vec ! [ ] ; { let mut internal = self . internal . lock ( ) . await ; internal . cancel_tx . take ( ) ; if let Some ( mut mux ) = internal . mux . take ( ) { mux . close ( ) . await ; } if let Some ( conn ) = internal . conn . take ( ) { if let Err ( err ) = conn . close ( ) . await { errs . push ( err . into ( ) ) ; } } } if let Err ( err ) = self . gatherer . close ( ) . await { errs . push ( err ) ; } flatten_errs ( errs ) }
Stop irreversibly stops the ICETransport.
Stop irreversibly stops the ICETransport .
&self