pub fn create() -> Result<Self, BatteryClientError> {
        let battery_svc = connect_to_protocol::<fpower::BatteryManagerMarker>()
            .map_err(BatteryClientError::manager_unavailable)?;
        Self::register_updates(battery_svc)
    }
/// Creates and returns an object to track updates from the Fuchsia Battery Service.
Creates and returns an object to track updates from the Fuchsia Battery Service.
Creates and returns an object to track updates from the Fuchsia Battery Service .
pub fn create() -> Result<Self, BatteryClientError> {
        let battery_svc = connect_to_protocol::<fpower::BatteryManagerMarker>()
            .map_err(BatteryClientError::manager_unavailable)?;
        Self::register_updates(battery_svc)
    }
pub fn create ( ) -> Result < Self , BatteryClientError > { let battery_svc = connect_to_protocol :: < fpower :: BatteryManagerMarker > ( ) . map_err ( BatteryClientError :: manager_unavailable ) ? ; Self :: register_updates ( battery_svc ) }
Creates and returns an object to track updates from the Fuchsia Battery Service.
Creates and returns an object to track updates from the Fuchsia Battery Service .