fidl_fuchsia_power_battery

Trait BatteryInfoProviderProxyInterface

Source
pub trait BatteryInfoProviderProxyInterface: 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§