async fn scenic_method_to_fidl(
    method_name: String,
    args: Value,
    facade: &ScenicFacade,
) -> Result<Value, Error> {
    match method_name.parse()? {
        ScenicMethod::TakeScreenshot => facade.take_screenshot().await,
        ScenicMethod::PresentView => {
            let request: PresentViewRequest = serde_json::from_value(args)?;
            Ok(to_value(facade.present_view(request.url, request.config).await?)?)
        }
    }
}
// Takes ACTS method command and executes corresponding Scenic Client
// FIDL methods.
Takes ACTS method command and executes corresponding Scenic Client
FIDL methods.
Takes ACTS method command and executes corresponding Scenic Client FIDL methods .
async fn scenic_method_to_fidl(
    method_name: String,
    args: Value,
    facade: &ScenicFacade,
) -> Result<Value, Error> {
    match method_name.parse()? {
        ScenicMethod::TakeScreenshot => facade.take_screenshot().await,
        ScenicMethod::PresentView => {
            let request: PresentViewRequest = serde_json::from_value(args)?;
            Ok(to_value(facade.present_view(request.url, request.config).await?)?)
        }
    }
}
async fn scenic_method_to_fidl ( method_name : String , args : Value , facade : & ScenicFacade , ) -> Result < Value , Error > { match method_name . parse ( ) ? { ScenicMethod :: TakeScreenshot => facade . take_screenshot ( ) . await , ScenicMethod :: PresentView => { let request : PresentViewRequest = serde_json :: from_value ( args ) ? ; Ok ( to_value ( facade . present_view ( request . url , request . config ) . await ? ) ? ) } } }
Takes ACTS method command and executes corresponding Scenic Client
FIDL methods.
Takes ACTS method command and executes corresponding Scenic Client FIDL methods .
method_name
String
args
Value
facade
&ScenicFacade