async fn mock_hfp_client(
    mut sender: mpsc::Sender<Event>,
    handles: MockHandles,
) -> Result<(), Error> {
    let hfp_svc = handles.connect_to_service::<HfpMarker>()?;
    sender.send(Event::Hfp(Some(hfp_svc))).await.expect("failed sending ack to test");

    let hfp_test_svc = handles.connect_to_service::<HfpTestMarker>()?;
    sender.send(Event::HfpTest(Some(hfp_test_svc))).await.expect("failed sending ack to test");
    Ok(())
}
/// Represents a fake HFP client that requests the `Hfp` and `HfpTest` services.
Represents a fake HFP client that requests the `Hfp` and `HfpTest` services.
Represents a fake HFP client that requests the ` Hfp ` and ` HfpTest ` services .
async fn mock_hfp_client(
    mut sender: mpsc::Sender<Event>,
    handles: MockHandles,
) -> Result<(), Error> {
    let hfp_svc = handles.connect_to_service::<HfpMarker>()?;
    sender.send(Event::Hfp(Some(hfp_svc))).await.expect("failed sending ack to test");
    let hfp_test_svc = handles.connect_to_service::<HfpTestMarker>()?;
    sender.send(Event::HfpTest(Some(hfp_test_svc))).await.expect("failed sending ack to test");
    Ok(())
}
async fn mock_hfp_client ( mut sender : mpsc :: Sender < Event > , handles : MockHandles , ) -> Result < ( ) , Error > { let hfp_svc = handles . connect_to_service :: < HfpMarker > ( ) ? ; sender . send ( Event :: Hfp ( Some ( hfp_svc ) ) ) . await . expect ( " " ) ; let hfp_test_svc = handles . connect_to_service :: < HfpTestMarker > ( ) ? ; sender . send ( Event :: HfpTest ( Some ( hfp_test_svc ) ) ) . await . expect ( " " ) ; Ok ( ( ) ) }
Represents a fake HFP client that requests the `Hfp` and `HfpTest` services.
Represents a fake HFP client that requests the ` Hfp ` and ` HfpTest ` services .
sender
mpsc::Sender<Event>
handles
MockHandles
sender
mpsc::Sender<Event>
handles
MockHandles