#[repr(C)]
pub struct PowerInfo {
Show 14 fields pub gauge_is_ok: bool, pub is_charging: bool, pub current_charger: f32, pub current_gauge: f32, pub voltage_battery_charging: f32, pub voltage_charger: f32, pub voltage_gauge: f32, pub voltage_vbus: f32, pub capacity_remaining: u32, pub capacity_full: u32, pub temperature_charger: f32, pub temperature_gauge: f32, pub charge: u8, pub health: u8,
}

Fields§

§gauge_is_ok: bool§is_charging: bool§current_charger: f32§current_gauge: f32§voltage_battery_charging: f32§voltage_charger: f32§voltage_gauge: f32§voltage_vbus: f32§capacity_remaining: u32§capacity_full: u32§temperature_charger: f32§temperature_gauge: f32§charge: u8§health: u8

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.