/// A new call manager is connected. The PeerTask should
A new call manager is connected.
A new call manager is connected .
async fn on_manager_connected(&mut self, id: hfp::ManagerConnectionId) -> Result<(), Error> {
        self.manager_id = Some(id);
        if !self.connection.connected() {
            // If there is no peer connection, there should not be a handler.
            self.handler = None;
            return Ok(());
        }
        self.notify_peer_connected(id).await;
        self.setup_handler().await?;
        Ok(())
    }
async fn on_manager_connected ( & mut self , id : hfp :: ManagerConnectionId ) -> Result < ( ) , Error > { self . manager_id = Some ( id ) ; if ! self . connection . connected ( ) { // If there is no peer connection, there should not be a handler. self . handler = None ; return Ok ( ( ) ) ; } self . notify_peer_connected ( id ) . await ; self . setup_handler ( ) . await ? ; Ok ( ( ) ) }
A new call manager is connected.
A new call manager is connected .
&mut self
id
hfp::ManagerConnectionId