fn to_avrcp_battery_status(info: BatteryInfo) -> fidl_avrcp::BatteryStatus {
    // By default, if the local status is unavailable, we default to reporting it as external since
    // there is no equivalent AVRCP variant.
    match info {
        BatteryInfo::NotAvailable | BatteryInfo::External => fidl_avrcp::BatteryStatus::External,
        BatteryInfo::Battery(BatteryLevel::Normal(_)) => fidl_avrcp::BatteryStatus::Normal,
        BatteryInfo::Battery(BatteryLevel::Warning(_)) => fidl_avrcp::BatteryStatus::Warning,
        BatteryInfo::Battery(BatteryLevel::Critical(_)) => fidl_avrcp::BatteryStatus::Critical,
        BatteryInfo::Battery(BatteryLevel::FullCharge) => fidl_avrcp::BatteryStatus::FullCharge,
    }
}
/// Returns an AVRCP-specific battery status from the provided BatteryClient `info`.
Returns an AVRCP-specific battery status from the provided BatteryClient `info`.
Returns an AVRCP - specific battery status from the provided BatteryClient ` info ` .
fn to_avrcp_battery_status(info: BatteryInfo) -> fidl_avrcp::BatteryStatus {
    // By default, if the local status is unavailable, we default to reporting it as external since
    // there is no equivalent AVRCP variant.
    match info {
        BatteryInfo::NotAvailable | BatteryInfo::External => fidl_avrcp::BatteryStatus::External,
        BatteryInfo::Battery(BatteryLevel::Normal(_)) => fidl_avrcp::BatteryStatus::Normal,
        BatteryInfo::Battery(BatteryLevel::Warning(_)) => fidl_avrcp::BatteryStatus::Warning,
        BatteryInfo::Battery(BatteryLevel::Critical(_)) => fidl_avrcp::BatteryStatus::Critical,
        BatteryInfo::Battery(BatteryLevel::FullCharge) => fidl_avrcp::BatteryStatus::FullCharge,
    }
}
fn to_avrcp_battery_status ( info : BatteryInfo ) -> fidl_avrcp :: BatteryStatus { // By default, if the local status is unavailable, we default to reporting it as external since // there is no equivalent AVRCP variant. match info { BatteryInfo :: NotAvailable | BatteryInfo :: External => fidl_avrcp :: BatteryStatus :: External , BatteryInfo :: Battery ( BatteryLevel :: Normal ( _ ) ) => fidl_avrcp :: BatteryStatus :: Normal , BatteryInfo :: Battery ( BatteryLevel :: Warning ( _ ) ) => fidl_avrcp :: BatteryStatus :: Warning , BatteryInfo :: Battery ( BatteryLevel :: Critical ( _ ) ) => fidl_avrcp :: BatteryStatus :: Critical , BatteryInfo :: Battery ( BatteryLevel :: FullCharge ) => fidl_avrcp :: BatteryStatus :: FullCharge , } }
Returns an AVRCP-specific battery status from the provided BatteryClient `info`.
Returns an AVRCP - specific battery status from the provided BatteryClient ` info ` .
info
BatteryInfo
info
BatteryInfo