pub struct SmartBatteryDynamic {
pub index: u8,
pub current_voltage: f32,
pub current_current: f32,
pub full_capacity: u32,
pub remained_capacity: u32,
pub temperature: f32,
pub cell_count: u8,
pub capacity_percent: u8,
pub battery_state: u64,
}Fields§
§index: u8§current_voltage: f32volts
current_current: f32§full_capacity: u32mAh
remained_capacity: u32mAh
temperature: f32degrees
cell_count: u8§capacity_percent: u8§battery_state: u64Trait Implementations§
Source§impl BinRead for SmartBatteryDynamic
impl BinRead for SmartBatteryDynamic
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read<R>(reader: &mut R) -> Result<Self, Error>
fn read<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments. Read moreSource§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moreSource§fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader using the given arguments. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl Debug for SmartBatteryDynamic
impl Debug for SmartBatteryDynamic
Source§impl ReadEndian for SmartBatteryDynamic
impl ReadEndian for SmartBatteryDynamic
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
Auto Trait Implementations§
impl Freeze for SmartBatteryDynamic
impl RefUnwindSafe for SmartBatteryDynamic
impl Send for SmartBatteryDynamic
impl Sync for SmartBatteryDynamic
impl Unpin for SmartBatteryDynamic
impl UnwindSafe for SmartBatteryDynamic
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