pub enum PortableBatteryDesignCapacity {
MilliWattHours(u16),
Unknown,
}
Expand description
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
sourceimpl Debug for PortableBatteryDesignCapacity
impl Debug for PortableBatteryDesignCapacity
sourceimpl From<u16> for PortableBatteryDesignCapacity
impl From<u16> for PortableBatteryDesignCapacity
sourceimpl PartialEq<PortableBatteryDesignCapacity> for PortableBatteryDesignCapacity
impl PartialEq<PortableBatteryDesignCapacity> for PortableBatteryDesignCapacity
sourcefn eq(&self, other: &PortableBatteryDesignCapacity) -> bool
fn eq(&self, other: &PortableBatteryDesignCapacity) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PortableBatteryDesignCapacity) -> bool
fn ne(&self, other: &PortableBatteryDesignCapacity) -> bool
This method tests for !=
.
impl Eq for PortableBatteryDesignCapacity
impl StructuralEq for PortableBatteryDesignCapacity
impl StructuralPartialEq for PortableBatteryDesignCapacity
Auto Trait Implementations
impl RefUnwindSafe for PortableBatteryDesignCapacity
impl Send for PortableBatteryDesignCapacity
impl Sync for PortableBatteryDesignCapacity
impl Unpin for PortableBatteryDesignCapacity
impl UnwindSafe for PortableBatteryDesignCapacity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more