driver_connector/
lib.rs

1// Copyright 2022 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 anyhow::Result;
6use {
7    fidl_fuchsia_driver_development as fdd, fidl_fuchsia_driver_playground as fdp,
8    fidl_fuchsia_driver_registrar as fdr, fidl_fuchsia_io as fio, fidl_fuchsia_test_manager as ftm,
9};
10
11#[async_trait::async_trait]
12pub trait DriverConnector {
13    async fn get_driver_development_proxy(&self, select: bool) -> Result<fdd::ManagerProxy>;
14    async fn get_dev_proxy(&self, select: bool) -> Result<fio::DirectoryProxy>;
15    async fn get_driver_registrar_proxy(&self, select: bool) -> Result<fdr::DriverRegistrarProxy>;
16    async fn get_tool_runner_proxy(&self, select: bool) -> Result<fdp::ToolRunnerProxy>;
17    async fn get_run_builder_proxy(&self) -> Result<ftm::RunBuilderProxy>;
18}