#[repr(i32)]pub enum BatteryType {
Unknown = 1,
Other = 2,
Chemical = 3,
Capacitor = 4,
}
Variants§
Unknown = 1
Plugin failed to detect battery type.
Other = 2
Vendor specific battery type.
Chemical = 3
Chemical battery, e.g. Li-ion battery.
Capacitor = 4
Super capacitor.
Trait Implementations§
source§impl Clone for BatteryType
impl Clone for BatteryType
source§fn clone(&self) -> BatteryType
fn clone(&self) -> BatteryType
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 BatteryType
impl Debug for BatteryType
source§impl PartialEq for BatteryType
impl PartialEq for BatteryType
impl Copy for BatteryType
impl StructuralPartialEq for BatteryType
Auto Trait Implementations§
impl Freeze for BatteryType
impl RefUnwindSafe for BatteryType
impl Send for BatteryType
impl Sync for BatteryType
impl Unpin for BatteryType
impl UnwindSafe for BatteryType
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
)