pub struct Status {
pub cells: u8,
pub temperature_sensors: u8,
pub charger_running: bool,
pub load_running: bool,
pub states: IOState,
pub cycles: u16,
}Expand description
Represents various status information of the BMS.
Fields§
§cells: u8Number of battery cells.
temperature_sensors: u8Number of temperature sensors.
charger_running: boolTrue if the charger is currently running.
load_running: boolTrue if a load is currently connected and drawing power.
states: IOStateState of digital inputs and outputs.
cycles: u16Number of charge/discharge cycles.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Status
impl<'de> Deserialize<'de> for Status
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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