[M] Change in fuchsia/fuchsia[main]: [zx][rs] Add as_handle_ref inherent methods.

0 views
Skip to first unread message

'Adam Perry (Gerrit)' via owners-override

unread,
Jan 27, 2026, 10:18:13 PM (3 days ago) Jan 27
to Owners Override, Adam Barth
Attention needed from Adam Barth and Owners Override

Adam Perry has uploaded the change for review

Adam Perry would like Owners Override and Adam Barth to review this change.

Commit message

[zx][rs] Add as_handle_ref inherent methods.

This allows most users to avoid importing AsHandleRef
unless they need it for a generic bound.

Also adds unowned() methods to return an Unowned
with the right type for the handle wrapper.
Bug: 434762683
Depends-on: turquoise-internal:Id72fc6ac94653ab25351ab8eccc7d7db8482ec8e
Change-Id: I1b10e67e42ac2cc84cebca8595f03f8dc0c3a2ee

Change diff


Change information

Files:
  • M examples/power/optimistic_lease_management/src/client.rs
  • M sdk/rust/zx/src/futex.rs
  • M sdk/rust/zx/src/handle.rs
  • M sdk/rust/zx/src/interrupt.rs
  • M sdk/rust/zx/src/macros.rs
  • M sdk/rust/zx/src/wait.rs
  • M src/connectivity/lib/network-device/rust/src/session/mod.rs
  • M src/connectivity/network/tests/integration/socket/src/lib.rs
  • M src/connectivity/overnet/lib/core/src/proxy/handle/event_pair.rs
  • M src/connectivity/overnet/lib/core/src/router/mod.rs
  • M src/diagnostics/archivist/src/inspect/repository.rs
  • M src/fonts/tests/integration/src/old_api/mod.rs
  • M src/graphics/display/lib/rust/display-utils/src/types.rs
  • M src/lib/fdio/rust/src/lib.rs
  • M src/lib/fdio/rust/src/spawn_builder.rs
  • M src/lib/fidl/rust/external_tests/src/handle_rights.rs
  • M src/lib/fidl/rust/fidl/src/client.rs
  • M src/lib/fidl_codec/rust/src/handle/classic.rs
  • M src/lib/fuchsia-async/src/handle/emulated/mod.rs
  • M src/lib/fuchsia-component/directory/src/lib.rs
  • M src/lib/process_builder/src/process_builder.rs
  • M src/lib/trace/rust/trace-observer/src/lib.rs
  • M src/lib/ui/carnelian/examples/png.rs
  • M src/lib/ui/carnelian/src/scene/scene.rs
  • M src/lib/ui/fidl_fuchsia_ui_views_ext/src/lib.rs
  • M src/lib/ui/fuchsia-scenic/src/sysmem.rs
  • M src/lib/ui/fuchsia-scenic/src/view_ref_pair.rs
  • M src/power/broker/src/credentials.rs
  • M src/power/broker/src/main.rs
  • M src/power/cpu-manager/src/syscall_handler.rs
  • M src/starnix/kernel/core/bpf/fs.rs
  • M src/starnix/kernel/core/fs/fuchsia/remote_unix_domain_socket.rs
  • M src/starnix/kernel/core/fs/fuchsia/timer.rs
  • M src/starnix/kernel/core/perf/mod.rs
  • M src/starnix/kernel/core/task/thread_group.rs
  • M src/starnix/kernel/core/time/hr_timer_manager.rs
  • M src/starnix/lib/ebpf_api/src/maps/hashmap.rs
  • M src/starnix/lib/ebpf_api/src/maps/lock.rs
  • M src/starnix/lib/ebpf_api/src/maps/lpm_trie.rs
  • M src/starnix/lib/ebpf_api/src/maps/ring_buffer.rs
  • M src/starnix/lib/usercopy/src/lib.rs
  • M src/starnix/modules/magma/image_file.rs
  • M src/starnix/modules/nanohub/datachannel_file.rs
  • M src/starnix/runner/lib/kernel_manager/src/proxy.rs
  • M src/starnix/runner/lib/kernel_manager/src/suspend.rs
  • M src/storage/fxfs/platform/src/fuchsia/volume.rs
  • M src/storage/lib/vfs/rust/src/object_request.rs
  • M src/storage/stress-tests/utils/fvm.rs
  • M src/sys/component_manager/lib/diagnostics/src/task_metrics/runtime_stats_source.rs
  • M src/sys/component_manager/lib/diagnostics/src/task_metrics/testing.rs
  • M src/sys/component_manager/lib/sandbox/src/fidl/dict.rs
  • M src/sys/component_manager/lib/sandbox/src/fidl/dir_connector.rs
  • M src/sys/component_manager/lib/sandbox/src/fidl/router.rs
  • M src/sys/component_manager/lib/sandbox/src/fidl/store.rs
  • M src/sys/component_manager/src/builtin/builtin_runner.rs
  • M src/sys/component_manager/src/sandbox_util.rs
  • M src/sys/lib/elf_runner/src/component.rs
  • M src/sys/lib/elf_runner/src/lib.rs
  • M src/sys/lib/elf_runner/src/process_launcher.rs
  • M src/sys/lib/namespace/src/lib.rs
  • M src/sys/pkg/tests/pkgdir/src/file.rs
  • M src/sys/test_runners/src/elf/elf_component.rs
  • M src/sys/test_runners/src/launch.rs
  • M src/sys/time/testing/fake-hrtimer/src/main.rs
  • M src/sys/time/testing/utc-handle-vendor/src/main.rs
  • M src/sys/time/timekeeper/alarms/src/emu.rs
  • M src/sys/time/timekeeper/alarms/src/timers.rs
  • M src/sys/time/timekeeper/src/clock_manager.rs
  • M src/sys/time/timekeeper/src/main.rs
  • M src/sys/time/timekeeper_integration/tests/faketime/integration.rs
  • M src/tests/fidl/dynsuite/client_suite/runners/rust_sync/src/main.rs
  • M src/ui/bin/text/src/keyboard/keyboard3.rs
  • M src/virtualization/lib/machina-virtio-device/src/notify.rs
Change size: M
Delta: 73 files changed, 80 insertions(+), 80 deletions(-)
Open in Gerrit

Related details

Attention is currently required from:
  • Adam Barth
  • Owners Override
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedDependencies-Satisfied
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newchange
Gerrit-Project: fuchsia
Gerrit-Branch: main
Gerrit-Change-Id: I1b10e67e42ac2cc84cebca8595f03f8dc0c3a2ee
Gerrit-Change-Number: 1449578
Gerrit-PatchSet: 22
Gerrit-Owner: Adam Perry <adam...@google.com>
Gerrit-Reviewer: Adam Barth <aba...@google.com>
Gerrit-Reviewer: Adam Perry <adam...@google.com>
Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
Gerrit-Attention: Owners Override <owners-...@fuchsia.dev>
Gerrit-Attention: Adam Barth <aba...@google.com>

--
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
To view this discussion visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/db2b4d25553d77fe1586ff0946e5fe5951aece02-HTML%40fuchsia-review.googlesource.com.
unsatisfied_requirement
open
diffy

'Adam Perry (Gerrit)' via owners-override

unread,
Jan 27, 2026, 10:18:18 PM (3 days ago) Jan 27
to Adam Barth, Owners Override, GI Try Builder, CQ Bot
Attention needed from Adam Barth and Owners Override

Adam Perry voted

Commit-Queue+1
Fuchsia-Auto-Submit+1
Open in Gerrit

Related details

Attention is currently required from:
  • Adam Barth
  • Owners Override
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedDependencies-Satisfied
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: fuchsia
Gerrit-Branch: main
Gerrit-Change-Id: I1b10e67e42ac2cc84cebca8595f03f8dc0c3a2ee
Gerrit-Change-Number: 1449578
Gerrit-PatchSet: 22
Gerrit-Owner: Adam Perry <adam...@google.com>
Gerrit-Reviewer: Adam Barth <aba...@google.com>
Gerrit-Reviewer: Adam Perry <adam...@google.com>
Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
Gerrit-Attention: Owners Override <owners-...@fuchsia.dev>
Gerrit-Attention: Adam Barth <aba...@google.com>
Gerrit-Comment-Date: Wed, 28 Jan 2026 03:18:09 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes

--
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
To view this discussion visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/db2b4d25553d77fe1586ff0946e5fe5951aece02-EmailReviewComments-HTML%40fuchsia-review.googlesource.com.
unsatisfied_requirement
open
diffy

'Adam Barth (Gerrit)' via owners-override

unread,
Jan 27, 2026, 10:38:48 PM (3 days ago) Jan 27
to Adam Perry, Owners Override, GI Try Builder, CQ Bot
Attention needed from Adam Perry and Owners Override

Adam Barth voted

Code-Review+2
Owners-Override+1
Open in Gerrit

Related details

Attention is currently required from:
  • Adam Perry
  • Owners Override
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement is not satisfiedDependencies-Satisfied
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: fuchsia
Gerrit-Branch: main
Gerrit-Change-Id: I1b10e67e42ac2cc84cebca8595f03f8dc0c3a2ee
Gerrit-Change-Number: 1449578
Gerrit-PatchSet: 22
Gerrit-Owner: Adam Perry <adam...@google.com>
Gerrit-Reviewer: Adam Barth <aba...@google.com>
Gerrit-Reviewer: Adam Perry <adam...@google.com>
Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
Gerrit-Attention: Adam Perry <adam...@google.com>
Gerrit-Attention: Owners Override <owners-...@fuchsia.dev>
Gerrit-Comment-Date: Wed, 28 Jan 2026 03:38:41 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes

--
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
To view this discussion visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/7d7877213f71714bff087cf515eff125a8162b34-EmailReviewComments-HTML%40fuchsia-review.googlesource.com.
satisfied_requirement
unsatisfied_requirement
open
diffy

'CQ Bot (Gerrit)' via owners-override

unread,
Jan 27, 2026, 10:58:55 PM (3 days ago) Jan 27
to Adam Perry, CL Deps Checker, Adam Barth, Owners Override, GI Try Builder

CQ Bot submitted the change

Change information

Commit message:
[zx][rs] Add as_handle_ref inherent methods.

This allows most users to avoid importing AsHandleRef
unless they need it for a generic bound.

Also adds unowned() methods to return an Unowned
with the right type for the handle wrapper.
Bug: 434762683
Depends-on: turquoise-internal:Id72fc6ac94653ab25351ab8eccc7d7db8482ec8e
Change-Id: I1b10e67e42ac2cc84cebca8595f03f8dc0c3a2ee
Reviewed-by: Adam Barth <aba...@google.com>
Fuchsia-Auto-Submit: Adam Perry <adam...@google.com>
Owners-Override: Adam Barth <aba...@google.com>
Commit-Queue: Adam Perry <adam...@google.com>
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +2 by Adam Barth
  • requirement satisfiedDependencies-Satisfied: +1 by CL Deps Checker
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: fuchsia
Gerrit-Branch: main
Gerrit-Change-Id: I1b10e67e42ac2cc84cebca8595f03f8dc0c3a2ee
Gerrit-Change-Number: 1449578
Gerrit-PatchSet: 23
Gerrit-Owner: Adam Perry <adam...@google.com>
Gerrit-Reviewer: Adam Barth <aba...@google.com>
Gerrit-Reviewer: Adam Perry <adam...@google.com>

--
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
To view this discussion visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/aa64474aee8c11e94fd08c46a9ff1330db71c5a9-HTML%40fuchsia-review.googlesource.com.
open
diffy
satisfied_requirement

'GI Roller (Gerrit)' via owners-override

unread,
Jan 27, 2026, 11:09:33 PM (3 days ago) Jan 27
to Adam Perry, CQ Bot, CL Deps Checker, Adam Barth, Owners Override, GI Try Builder

Message from GI Roller

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedDependencies-Satisfied
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: fuchsia
    Gerrit-Branch: main
    Gerrit-Change-Id: I1b10e67e42ac2cc84cebca8595f03f8dc0c3a2ee
    Gerrit-Change-Number: 1449578
    Gerrit-PatchSet: 23
    Gerrit-Owner: Adam Perry <adam...@google.com>
    Gerrit-Reviewer: Adam Barth <aba...@google.com>
    Gerrit-Reviewer: Adam Perry <adam...@google.com>
    Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
    Gerrit-Comment-Date: Wed, 28 Jan 2026 04:09:30 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No

    --
    You received this message because you are subscribed to the Google Groups "owners-override" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
    To view this discussion visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/ee02df56a0fe2c9bd2f4771dc4101981a7821ca0-EmailReviewComments-HTML%40fuchsia-review.googlesource.com.
    satisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages