fidl_fuchsia_power_battery

Trait BatteryManagerProxyInterface

Source
pub trait BatteryManagerProxyInterface: Send + Sync {
    type GetBatteryInfoResponseFut: Future<Output = Result<BatteryInfo, Error>> + Send;

    // Required methods
    fn get_battery_info(&self) -> Self::GetBatteryInfoResponseFut;
    fn watch(
        &self,
        watcher: ClientEnd<BatteryInfoWatcherMarker>,
    ) -> Result<(), Error>;
}

Required Associated Types§

Required Methods§

Source

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

Source

fn watch( &self, watcher: ClientEnd<BatteryInfoWatcherMarker>, ) -> Result<(), Error>

Implementors§