Skip to main content

driver_manager_composite/
composite_manager_bridge.rs

1// Copyright 2026 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5use async_trait::async_trait;
6use fidl_fuchsia_driver_framework as fdf;
7
8#[async_trait(?Send)]
9pub trait CompositeManagerBridge {
10    fn box_clone(&self) -> Box<dyn CompositeManagerBridge>;
11
12    async fn bind_nodes_for_composite_node_spec(&self);
13
14    async fn add_spec_to_driver_index(
15        &self,
16        spec: fdf::CompositeNodeSpec,
17    ) -> Result<(), zx::Status>;
18
19    async fn request_rebind_from_driver_index(
20        &self,
21        spec: String,
22        driver_url_suffix: Option<String>,
23    ) -> Result<(), zx::Status>;
24}