/// Connects to the power integration service and propagates battery updates to the provided
/// `media_sessions` shared state.
Connects to the power integration service and propagates battery updates to the provided
`media_sessions` shared state.
Connects to the power integration service and propagates battery updates to the provided ` media_sessions ` shared state .
pub(crate) async fn process_battery_client_requests(media_sessions: Arc<MediaSessions>) {
    let battery_client = match BatteryClient::create() {
        Err(e) => {
            info!("Power integration unavailable: {:?}", e);
            return;
        }
        Ok(batt) => batt,
    };
    handle_battery_client_updates(battery_client, media_sessions).await;
}
pub ( crate ) async fn process_battery_client_requests ( media_sessions : Arc < MediaSessions > ) { let battery_client = match BatteryClient :: create ( ) { Err ( e ) => { info ! ( " " e ) ; return ; } Ok ( batt ) => batt , } ; handle_battery_client_updates ( battery_client , media_sessions ) . await ; }
Connects to the power integration service and propagates battery updates to the provided
`media_sessions` shared state.
Connects to the power integration service and propagates battery updates to the provided ` media_sessions ` shared state .
media_sessions
Arc<MediaSessions>