#[repr(i32)]pub enum BatteryCounters {
BatteryCounterUnspecified = 0,
BatteryCounterCharge = 1,
BatteryCounterCapacityPercent = 2,
BatteryCounterCurrent = 3,
BatteryCounterCurrentAvg = 4,
BatteryCounterVoltage = 5,
}
Variants§
BatteryCounterUnspecified = 0
BatteryCounterCharge = 1
Coulomb counter.
BatteryCounterCapacityPercent = 2
Charge (%).
BatteryCounterCurrent = 3
Instantaneous current.
BatteryCounterCurrentAvg = 4
Avg current.
BatteryCounterVoltage = 5
Instantaneous voltage.
Implementations§
Source§impl BatteryCounters
impl BatteryCounters
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Trait Implementations§
Source§impl Clone for BatteryCounters
impl Clone for BatteryCounters
Source§fn clone(&self) -> BatteryCounters
fn clone(&self) -> BatteryCounters
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BatteryCounters
impl Debug for BatteryCounters
Source§impl Default for BatteryCounters
impl Default for BatteryCounters
Source§fn default() -> BatteryCounters
fn default() -> BatteryCounters
Returns the “default value” for a type. Read more
Source§impl From<BatteryCounters> for i32
impl From<BatteryCounters> for i32
Source§fn from(value: BatteryCounters) -> i32
fn from(value: BatteryCounters) -> i32
Converts to this type from the input type.
Source§impl Hash for BatteryCounters
impl Hash for BatteryCounters
Source§impl Ord for BatteryCounters
impl Ord for BatteryCounters
Source§fn cmp(&self, other: &BatteryCounters) -> Ordering
fn cmp(&self, other: &BatteryCounters) -> Ordering
1.21.0 · 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 BatteryCounters
impl PartialEq for BatteryCounters
Source§impl PartialOrd for BatteryCounters
impl PartialOrd for BatteryCounters
impl Copy for BatteryCounters
impl Eq for BatteryCounters
impl StructuralPartialEq for BatteryCounters
Auto Trait Implementations§
impl Freeze for BatteryCounters
impl RefUnwindSafe for BatteryCounters
impl Send for BatteryCounters
impl Sync for BatteryCounters
impl Unpin for BatteryCounters
impl UnwindSafe for BatteryCounters
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)