Skip to main content

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 flex_fuchsia_driver_development as fdd;
7use flex_fuchsia_driver_registrar as fdr;
8use flex_fuchsia_test_manager as ftm;
9use std::future::Future;
10
11pub trait DriverConnector {
12    fn get_driver_development_proxy(
13        &self,
14        select: bool,
15    ) -> impl Future<Output = Result<fdd::ManagerProxy>> + Send;
16    fn get_driver_registrar_proxy(
17        &self,
18        select: bool,
19    ) -> impl Future<Output = Result<fdr::DriverRegistrarProxy>> + Send;
20    fn get_suite_runner_proxy(&self) -> impl Future<Output = Result<ftm::SuiteRunnerProxy>> + Send;
21}