pub async fn add_remote_candidate(
        &self,
        remote_candidate: Option<RTCIceCandidate>,
    ) -> Result<()> {
        self.ensure_gatherer().await?;

        if let Some(agent) = self.gatherer.get_agent().await {
            if let Some(r) = remote_candidate {
                let c: Arc<dyn Candidate + Send + Sync> = Arc::new(r.to_ice().await?);
                agent.add_remote_candidate(&c).await?;
            }

            Ok(())
        } else {
            Err(Error::ErrICEAgentNotExist)
        }
    }
/// adds a candidate associated with the remote ICETransport.
adds a candidate associated with the remote ICETransport.
adds a candidate associated with the remote ICETransport .
pub async fn add_remote_candidate(
        &self,
        remote_candidate: Option<RTCIceCandidate>,
    ) -> Result<()> {
        self.ensure_gatherer().await?;
        if let Some(agent) = self.gatherer.get_agent().await {
            if let Some(r) = remote_candidate {
                let c: Arc<dyn Candidate + Send + Sync> = Arc::new(r.to_ice().await?);
                agent.add_remote_candidate(&c).await?;
            }
            Ok(())
        } else {
            Err(Error::ErrICEAgentNotExist)
        }
    }
pub async fn add_remote_candidate ( & self , remote_candidate : Option < RTCIceCandidate > , ) -> Result < ( ) > { self . ensure_gatherer ( ) . await ? ; if let Some ( agent ) = self . gatherer . get_agent ( ) . await { if let Some ( r ) = remote_candidate { let c : Arc < dyn Candidate + Send + Sync > = Arc :: new ( r . to_ice ( ) . await ? ) ; agent . add_remote_candidate ( & c ) . await ? ; } Ok ( ( ) ) } else { Err ( Error :: ErrICEAgentNotExist ) } }
adds a candidate associated with the remote ICETransport.
adds a candidate associated with the remote ICETransport .
&self
remote_candidate
Option<RTCIceCandidate>