Struct vexide_simulator_protocol::Battery
source · pub struct Battery {
pub voltage: f64,
pub current: f64,
pub capacity: f64,
}Expand description
Battery status and statistics.
Fields§
§voltage: f64§current: f64§capacity: f64Trait Implementations§
source§impl<'de> Deserialize<'de> for Battery
impl<'de> Deserialize<'de> for Battery
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
source§impl PartialEq for Battery
impl PartialEq for Battery
source§impl PartialOrd for Battery
impl PartialOrd for Battery
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for Battery
impl StructuralPartialEq for Battery
Auto Trait Implementations§
impl Freeze for Battery
impl RefUnwindSafe for Battery
impl Send for Battery
impl Sync for Battery
impl Unpin for Battery
impl UnwindSafe for Battery
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