/// Launches the profile specified by `profile_url`.
Launches the profile specified by `profile_url`.
Launches the profile specified by ` profile_url ` .
async fn do_launch_profile(
        mock_peer: &mut MockPeer,
        launch_info: LaunchInfo,
    ) -> (ProfileHandle, impl Stream<Item = Result<ComponentStatus, fidl::Error>>) {
        let launch_res = mock_peer.launch_profile(launch_info);
        let (handle, mut component_stream) = launch_res.expect("profile should launch");
        match component_stream.next().await {
            Some(Ok(ComponentStatus::DirectoryReady)) => {}
            x => panic!("Expected directory ready but got: {:?}", x),
        }
        (handle, component_stream)
    }
async fn do_launch_profile ( mock_peer : & mut MockPeer , launch_info : LaunchInfo , ) -> ( ProfileHandle , impl Stream < Item = Result < ComponentStatus , fidl :: Error > > ) { let launch_res = mock_peer . launch_profile ( launch_info ) ; let ( handle , mut component_stream ) = launch_res . expect ( " " ) ; match component_stream . next ( ) . await { Some ( Ok ( ComponentStatus :: DirectoryReady ) ) => { } x => panic ! ( " " x ) , } ( handle , component_stream ) }
Launches the profile specified by `profile_url`.
Launches the profile specified by ` profile_url ` .
mock_peer
&mut MockPeer
launch_info
LaunchInfo