pub enum PortableBatteryDesignCapacity {
MilliWattHours(u16),
Unknown,
}
Expand description
§Portable Battery - Design Capacity
Variants§
MilliWattHours(u16)
Design capacity of the battery in mWatt-hours
For version 2.2+ implementations, this value is multiplied by the ‘design_capacity_multiplier’ to produce the actual value.
Unknown
Design capacity of the battery in mWatt-hours is unknown.
Trait Implementations§
Source§impl From<u16> for PortableBatteryDesignCapacity
impl From<u16> for PortableBatteryDesignCapacity
Source§impl PartialEq for PortableBatteryDesignCapacity
impl PartialEq for PortableBatteryDesignCapacity
Source§fn eq(&self, other: &PortableBatteryDesignCapacity) -> bool
fn eq(&self, other: &PortableBatteryDesignCapacity) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Eq for PortableBatteryDesignCapacity
impl StructuralPartialEq for PortableBatteryDesignCapacity
Auto Trait Implementations§
impl Freeze for PortableBatteryDesignCapacity
impl RefUnwindSafe for PortableBatteryDesignCapacity
impl Send for PortableBatteryDesignCapacity
impl Sync for PortableBatteryDesignCapacity
impl Unpin for PortableBatteryDesignCapacity
impl UnwindSafe for PortableBatteryDesignCapacity
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