#[repr(u8)]pub enum BatChargeState {
Unknown = 0,
Ischarging = 1,
Isatfullcharge = 2,
Isnotcharging = 3,
}Variants§
Unknown = 0
Unable to determine the charging state
Ischarging = 1
The battery is charging
Isatfullcharge = 2
The battery is at full charge
Isnotcharging = 3
The battery is not charging
Implementations§
Trait Implementations§
Source§impl Clone for BatChargeState
impl Clone for BatChargeState
Source§fn clone(&self) -> BatChargeState
fn clone(&self) -> BatChargeState
Returns a duplicate 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 BatChargeState
impl Debug for BatChargeState
Source§impl<'de> Deserialize<'de> for BatChargeState
impl<'de> Deserialize<'de> for BatChargeState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<BatChargeState> for u8
impl From<BatChargeState> for u8
Source§fn from(val: BatChargeState) -> Self
fn from(val: BatChargeState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BatChargeState
impl PartialEq for BatChargeState
Source§impl Serialize for BatChargeState
impl Serialize for BatChargeState
impl Copy for BatChargeState
impl Eq for BatChargeState
impl StructuralPartialEq for BatChargeState
Auto Trait Implementations§
impl Freeze for BatChargeState
impl RefUnwindSafe for BatChargeState
impl Send for BatChargeState
impl Sync for BatChargeState
impl Unpin for BatChargeState
impl UnwindSafe for BatChargeState
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