fn hf_indicator_update(&mut self, indicator: HfIndicator) {
        match indicator {
            ind @ HfIndicator::EnhancedSafety(_) => {
                info!(
                    "Received EnhancedSafety HF Indicator update {:?} for peer {}",
                    ind, self.id
                );
            }
            HfIndicator::BatteryLevel(v) => {
                if let Some(handler) = &mut self.handler {
                    if let Err(e) = handler.report_headset_battery_level(v) {
                        warn!("Couldn't report headset battery level {:?} for peer {}", e, self.id);
                    }
                }
            }
        }
    }
/// Sends an HF Indicator update to the client.
Sends an HF Indicator update to the client.
Sends an HF Indicator update to the client .
fn hf_indicator_update(&mut self, indicator: HfIndicator) {
        match indicator {
            ind @ HfIndicator::EnhancedSafety(_) => {
                info!(
                    "Received EnhancedSafety HF Indicator update {:?} for peer {}",
                    ind, self.id
                );
            }
            HfIndicator::BatteryLevel(v) => {
                if let Some(handler) = &mut self.handler {
                    if let Err(e) = handler.report_headset_battery_level(v) {
                        warn!("Couldn't report headset battery level {:?} for peer {}", e, self.id);
                    }
                }
            }
        }
    }
fn hf_indicator_update ( & mut self , indicator : HfIndicator ) { match indicator { ind @ HfIndicator :: EnhancedSafety ( _ ) => { info ! ( " " ind self id ) ; } HfIndicator :: BatteryLevel ( v ) => { if let Some ( handler ) = & mut self . handler { if let Err ( e ) = handler . report_headset_battery_level ( v ) { warn ! ( " " e self id ) ; } } } } }
Sends an HF Indicator update to the client.
Sends an HF Indicator update to the client .
&mut self
indicator
HfIndicator
&mut self
indicator
HfIndicator