pub(crate) async fn restart(&self) -> Result<()> {
        if let Some(agent) = self.gatherer.get_agent().await {
            agent
                .restart(
                    self.gatherer
                        .setting_engine
                        .candidates
                        .username_fragment
                        .clone(),
                    self.gatherer.setting_engine.candidates.password.clone(),
                )
                .await?;
        } else {
            return Err(Error::ErrICEAgentNotExist);
        }
        self.gatherer.gather().await
    }
/// restart is not exposed currently because ORTC has users create a whole new ICETransport
/// so for now lets keep it private so we don't cause ORTC users to depend on non-standard APIs
restart is not exposed currently because ORTC has users create a whole new ICETransport
so for now lets keep it private so we don't cause ORTC users to depend on non-standard APIs
restart is not exposed currently because ORTC has users create a whole new ICETransport so for now lets keep it private so we don ' t cause ORTC users to depend on non - standard APIs
pub(crate) async fn restart(&self) -> Result<()> {
        if let Some(agent) = self.gatherer.get_agent().await {
            agent
                .restart(
                    self.gatherer
                        .setting_engine
                        .candidates
                        .username_fragment
                        .clone(),
                    self.gatherer.setting_engine.candidates.password.clone(),
                )
                .await?;
        } else {
            return Err(Error::ErrICEAgentNotExist);
        }
        self.gatherer.gather().await
    }
pub ( crate ) async fn restart ( & self ) -> Result < ( ) > { if let Some ( agent ) = self . gatherer . get_agent ( ) . await { agent . restart ( self . gatherer . setting_engine . candidates . username_fragment . clone ( ) , self . gatherer . setting_engine . candidates . password . clone ( ) , ) . await ? ; } else { return Err ( Error :: ErrICEAgentNotExist ) ; } self . gatherer . gather ( ) . await }
restart is not exposed currently because ORTC has users create a whole new ICETransport
so for now lets keep it private so we don't cause ORTC users to depend on non-standard APIs
restart is not exposed currently because ORTC has users create a whole new ICETransport so for now lets keep it private so we don ' t cause ORTC users to depend on non - standard APIs
&self