Struct open_protocol::types::BatteryInfo [] [src]

pub struct BatteryInfo {
    pub capacity: u32,
    pub voltage: i32,
    pub current: i32,
}

Fields

Trait Implementations

impl Debug for BatteryInfo
[src]

Formats the value using the given formatter.

impl Copy for BatteryInfo
[src]

impl Clone for BatteryInfo
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for BatteryInfo
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Default for BatteryInfo
[src]

Returns the "default value" for a type. Read more

impl FromBytes for BatteryInfo
[src]

impl Display for BatteryInfo
[src]

Formats the value using the given formatter. Read more