Enum dmc::battery::BatteryStatus [] [src]

pub enum BatteryStatus {
    Wired,
    FullyCharged,
    Charging,
    Discharging,
}

One of: Wired, FullyCharged, Charging and Discharging.

Variants

Not running on a battery

Battery is fully charged and not discharging

Battery is charging

Battery is discharging

Trait Implementations

impl Debug for BatteryStatus
[src]

Formats the value using the given formatter.

impl Copy for BatteryStatus
[src]

impl Clone for BatteryStatus
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for BatteryStatus
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for BatteryStatus
[src]

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

This method tests for !=.

impl Eq for BatteryStatus
[src]