pub async fn close(&self) -> Result<()> {
        self.set_state(RTCIceGathererState::Closed).await;

        let agent = {
            let mut agent_opt = self.agent.lock().await;
            agent_opt.take()
        };

        if let Some(agent) = agent {
            agent.close().await?;
        }

        Ok(())
    }
/// Close prunes all local candidates, and closes the ports.
Close prunes all local candidates, and closes the ports.
Close prunes all local candidates and closes the ports .
pub async fn close(&self) -> Result<()> {
        self.set_state(RTCIceGathererState::Closed).await;
        let agent = {
            let mut agent_opt = self.agent.lock().await;
            agent_opt.take()
        };
        if let Some(agent) = agent {
            agent.close().await?;
        }
        Ok(())
    }
pub async fn close ( & self ) -> Result < ( ) > { self . set_state ( RTCIceGathererState :: Closed ) . await ; let agent = { let mut agent_opt = self . agent . lock ( ) . await ; agent_opt . take ( ) } ; if let Some ( agent ) = agent { agent . close ( ) . await ? ; } Ok ( ( ) ) }
Close prunes all local candidates, and closes the ports.
Close prunes all local candidates and closes the ports .
&self