pub fn register_updates(
        battery_svc: fpower::BatteryManagerProxy,
    ) -> Result<Self, BatteryClientError> {
        let (watcher_client, watcher) =
            create_request_stream::<fpower::BatteryInfoWatcherMarker>()?;
        battery_svc.watch(watcher_client)?;

        Ok(Self {
            _svc: battery_svc,
            watcher,
            current_info: BatteryInfo::NotAvailable,
            terminated: false,
        })
    }
/// Register for battery change updates from the Fuchsia battery `svc`.
Register for battery change updates from the Fuchsia battery `svc`.
Register for battery change updates from the Fuchsia battery ` svc ` .
pub fn register_updates(
        battery_svc: fpower::BatteryManagerProxy,
    ) -> Result<Self, BatteryClientError> {
        let (watcher_client, watcher) =
            create_request_stream::<fpower::BatteryInfoWatcherMarker>()?;
        battery_svc.watch(watcher_client)?;
        Ok(Self {
            _svc: battery_svc,
            watcher,
            current_info: BatteryInfo::NotAvailable,
            terminated: false,
        })
    }
pub fn register_updates ( battery_svc : fpower :: BatteryManagerProxy , ) -> Result < Self , BatteryClientError > { let ( watcher_client , watcher ) = create_request_stream :: < fpower :: BatteryInfoWatcherMarker > ( ) ? ; battery_svc . watch ( watcher_client ) ? ; Ok ( Self { _svc : battery_svc , watcher , current_info : BatteryInfo :: NotAvailable , terminated : false , } ) }
Register for battery change updates from the Fuchsia battery `svc`.
Register for battery change updates from the Fuchsia battery ` svc ` .
battery_svc
fpower::BatteryManagerProxy
battery_svc
fpower::BatteryManagerProxy