#[repr(C)]pub struct PowerInfo {Show 16 fields
pub gauge_is_ok: bool,
pub is_charging: bool,
pub is_shutdown_requested: bool,
pub is_otg_enabled: bool,
pub current_charger: f32,
pub current_gauge: f32,
pub voltage_battery_charge_limit: 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§is_shutdown_requested: bool§is_otg_enabled: bool§current_charger: f32§current_gauge: f32§voltage_battery_charge_limit: 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: u8Trait Implementations§
Auto Trait Implementations§
impl Freeze for PowerInfo
impl RefUnwindSafe for PowerInfo
impl Send for PowerInfo
impl Sync for PowerInfo
impl Unpin for PowerInfo
impl UnwindSafe for PowerInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more