Struct bluerobotics_ping::bluebps::StateStruct
source · pub struct StateStruct {
pub battery_voltage: u16,
pub battery_current: u16,
pub battery_temperature: u16,
pub cpu_temperature: u16,
pub flags: u8,
pub cell_voltages_length: u8,
pub cell_voltages: Vec<u16>,
}Expand description
Get the current state of the device
Fields§
§battery_voltage: u16The main battery voltage
battery_current: u16The current measurement
battery_temperature: u16The battery temperature
cpu_temperature: u16The cpu temperature
flags: u8flags indicating if any of the configured limits are currently exceeded
cell_voltages_length: u8Array containing cell voltages
cell_voltages: Vec<u16>Trait Implementations§
source§impl Clone for StateStruct
impl Clone for StateStruct
source§fn clone(&self) -> StateStruct
fn clone(&self) -> StateStruct
Returns a copy 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 StateStruct
impl Debug for StateStruct
source§impl Default for StateStruct
impl Default for StateStruct
source§fn default() -> StateStruct
fn default() -> StateStruct
Returns the “default value” for a type. Read more
source§impl DeserializePayload for StateStruct
impl DeserializePayload for StateStruct
fn deserialize(payload: &[u8]) -> Self
source§impl MessageInfo for StateStruct
impl MessageInfo for StateStruct
source§impl PartialEq for StateStruct
impl PartialEq for StateStruct
source§fn eq(&self, other: &StateStruct) -> bool
fn eq(&self, other: &StateStruct) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl SerializePayload for StateStruct
impl SerializePayload for StateStruct
impl StructuralPartialEq for StateStruct
Auto Trait Implementations§
impl Freeze for StateStruct
impl RefUnwindSafe for StateStruct
impl Send for StateStruct
impl Sync for StateStruct
impl Unpin for StateStruct
impl UnwindSafe for StateStruct
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