pub enum CapacityModeValue {
MilliAmpUnsigned(u16),
CentiWattUnsigned(u16),
}Expand description
Depending on the value of the CapacityMode bit, the Smart Battery will use milliamps or centiwatts.
Variants§
MilliAmpUnsigned(u16)
Unsigned Milliamp or MilliampHour representation, used when CapacityMode bit = 0.
CentiWattUnsigned(u16)
Unsigned Centiwatt or CentiwattHour representation, used when CapacityMode bit = 1.
Trait Implementations§
Source§impl Clone for CapacityModeValue
impl Clone for CapacityModeValue
Source§fn clone(&self) -> CapacityModeValue
fn clone(&self) -> CapacityModeValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CapacityModeValue
Source§impl Debug for CapacityModeValue
impl Debug for CapacityModeValue
impl Eq for CapacityModeValue
Source§impl Hash for CapacityModeValue
impl Hash for CapacityModeValue
Source§impl Ord for CapacityModeValue
impl Ord for CapacityModeValue
Source§fn cmp(&self, other: &CapacityModeValue) -> Ordering
fn cmp(&self, other: &CapacityModeValue) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CapacityModeValue
impl PartialEq for CapacityModeValue
Source§fn eq(&self, other: &CapacityModeValue) -> bool
fn eq(&self, other: &CapacityModeValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CapacityModeValue
impl PartialOrd for CapacityModeValue
impl StructuralPartialEq for CapacityModeValue
Auto Trait Implementations§
impl Freeze for CapacityModeValue
impl RefUnwindSafe for CapacityModeValue
impl Send for CapacityModeValue
impl Sync for CapacityModeValue
impl Unpin for CapacityModeValue
impl UnsafeUnpin for CapacityModeValue
impl UnwindSafe for CapacityModeValue
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