fidl_fuchsia_power_battery_testTrait BatterySimulatorControllerProxyInterface
Source pub trait BatterySimulatorControllerProxyInterface: Send + Sync {
type GetBatteryInfoResponseFut: Future<Output = Result<BatteryInfo, Error>> + Send;
type IsSimulatingResponseFut: Future<Output = Result<bool, Error>> + Send;
Show 13 methods
// Required methods
fn get_battery_info(&self) -> Self::GetBatteryInfoResponseFut;
fn set_battery_status(
&self,
battery_status: BatteryStatus,
) -> Result<(), Error>;
fn set_charge_status(
&self,
charge_status: ChargeStatus,
) -> Result<(), Error>;
fn set_charge_source(
&self,
charge_source: ChargeSource,
) -> Result<(), Error>;
fn set_battery_percentage(&self, percent: f32) -> Result<(), Error>;
fn set_level_status(&self, level_status: LevelStatus) -> Result<(), Error>;
fn set_time_remaining(&self, duration: i64) -> Result<(), Error>;
fn disconnect_real_battery(&self) -> Result<(), Error>;
fn is_simulating(&self) -> Self::IsSimulatingResponseFut;
fn reconnect_real_battery(&self) -> Result<(), Error>;
fn set_present_voltage_mv(&self, voltage: u32) -> Result<(), Error>;
fn set_remaining_capacity_uah(&self, capacity: u32) -> Result<(), Error>;
fn set_battery_spec(&self, spec: &BatterySpec) -> Result<(), Error>;
}