fidl_fuchsia_power_battery_test

Trait 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>;
}

Required Associated Types§

Source

type GetBatteryInfoResponseFut: Future<Output = Result<BatteryInfo, Error>> + Send

Source

type IsSimulatingResponseFut: Future<Output = Result<bool, Error>> + Send

Required Methods§

Source

fn get_battery_info(&self) -> Self::GetBatteryInfoResponseFut

Source

fn set_battery_status(&self, battery_status: BatteryStatus) -> Result<(), Error>

Source

fn set_charge_status(&self, charge_status: ChargeStatus) -> Result<(), Error>

Source

fn set_charge_source(&self, charge_source: ChargeSource) -> Result<(), Error>

Source

fn set_battery_percentage(&self, percent: f32) -> Result<(), Error>

Source

fn set_level_status(&self, level_status: LevelStatus) -> Result<(), Error>

Source

fn set_time_remaining(&self, duration: i64) -> Result<(), Error>

Source

fn disconnect_real_battery(&self) -> Result<(), Error>

Source

fn is_simulating(&self) -> Self::IsSimulatingResponseFut

Source

fn reconnect_real_battery(&self) -> Result<(), Error>

Source

fn set_present_voltage_mv(&self, voltage: u32) -> Result<(), Error>

Source

fn set_remaining_capacity_uah(&self, capacity: u32) -> Result<(), Error>

Source

fn set_battery_spec(&self, spec: &BatterySpec) -> Result<(), Error>

Implementors§