pub struct FrameBattery {Show 13 fields
pub charge_level: u8,
pub voltage: f32,
pub current: f32,
pub current_capacity: u32,
pub full_capacity: u32,
pub cell_num: u8,
pub is_cell_voltage_estimated: bool,
pub cell_voltages: Vec<f32>,
pub cell_voltage_deviation: f32,
pub max_cell_voltage_deviation: f32,
pub temperature: f32,
pub min_temperature: f32,
pub max_temperature: f32,
}Fields§
§charge_level: u8Battery charge level in percentage
voltage: f32Battery voltage
current: f32Battery current
current_capacity: u32Current battery capacity
full_capacity: u32Full battery capacity
cell_num: u8Number of battery cells
is_cell_voltage_estimated: boolIndicates if cell voltage is derived from global voltage
cell_voltages: Vec<f32>Cell voltages
cell_voltage_deviation: f32Deviation in cell voltages
max_cell_voltage_deviation: f32Maximum deviation in cell voltages
temperature: f32Battery temperature
min_temperature: f32Minimum battery temperature
max_temperature: f32Maximum battery temperature
Trait Implementations§
Source§impl Clone for FrameBattery
impl Clone for FrameBattery
Source§fn clone(&self) -> FrameBattery
fn clone(&self) -> FrameBattery
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrameBattery
impl Debug for FrameBattery
Source§impl Default for FrameBattery
impl Default for FrameBattery
Source§fn default() -> FrameBattery
fn default() -> FrameBattery
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FrameBattery
impl RefUnwindSafe for FrameBattery
impl Send for FrameBattery
impl Sync for FrameBattery
impl Unpin for FrameBattery
impl UnwindSafe for FrameBattery
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