Struct open_protocol::types::BatteryInfo
[−]
[src]
pub struct BatteryInfo {
pub capacity: u32,
pub voltage: i32,
pub current: i32,
}Fields
capacity: u32
voltage: i32
current: i32
Trait Implementations
impl Debug for BatteryInfo[src]
impl Copy for BatteryInfo[src]
impl Clone for BatteryInfo[src]
fn clone(&self) -> BatteryInfo
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl PartialEq for BatteryInfo[src]
fn eq(&self, __arg_0: &BatteryInfo) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &BatteryInfo) -> bool
This method tests for !=.
impl Default for BatteryInfo[src]
fn default() -> BatteryInfo
Returns the "default value" for a type. Read more