[roll] Roll fuchsia [fidl][rust] Migrate resource results to new types
This CL migrates response sending to the new parameter types when the
top level response is a resource struct with error syntax.
This means when you call responder.send(...), you pass a Result instead
of &mut Result, and the Ok type is consistent with other parameter types
rather than being a tuple of owned types. For example:
Before After
=================================== ==========================
r.send(&mut Ok(vmo)) r.send(Ok(vmo))
----------------------------------- --------------------------
r.send(&mut Ok( r.send(Ok(
Some(Box::new(resource_struct)))) Some(resource_struct)))
----------------------------------- --------------------------
r.send(&mut Ok( r.send(Ok(("hi", handle)))
("hi".to_owned(), handle)))
----------------------------------- --------------------------
r.send(&mut Err(123)) r.send(Err(123))
----------------------------------- --------------------------
This is a continuation of I1a8ace070e08ea3512a8d30dd2b2b8b23ee511f7
which migrated top-level table and union responses. The final step after
this will be migrated responses that use value structs.
Test: fx check-goldens fidlgen_rust
Test: fx build tools/fidl/fidlgen_rust:goldens
Original-Bug: 54368, 118880
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/857185
Original-Revision: 43cd68241e726afa4c9103b68799cd3073e134ad
GitOrigin-RevId: 974ba76a436ba143c5312e4b0f710504b161d66a
Change-Id: Ia88e9f4d0094e0bf4e95a19dd51e6f5b72e784f3
This repository contains Fuchsia's Global Integration manifest files.
All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.
Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.
First install Jiri.
Next run:
$ jiri init $ jiri import minimal https://fuchsia.googlesource.com/integration $ jiri update
Third party projects should have their own subdirectory in ./third_party.