Skip to main content

powercli/
connector.rs

1// Copyright 2025 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_power as fpower, fidl_fuchsia_power_manager_debug as fdebug,
8    fidl_fuchsia_power_topology_test as fpt,
9};
10
11pub trait Connector {
12    fn get_system_activity_control(
13        &self,
14    ) -> impl std::future::Future<Output = Result<fpt::SystemActivityControlProxy>>;
15    fn get_debug(&self) -> impl std::future::Future<Output = Result<fdebug::DebugProxy>>;
16    fn get_reboot_initiator(
17        &self,
18    ) -> impl std::future::Future<Output = Result<fpower::CollaborativeRebootInitiatorProxy>>;
19}