pub enum ChargeState {
Charging,
Discharging,
Unknown,
}Expand description
Charge state of the battery.
Variants§
Trait Implementations§
Source§impl Clone for ChargeState
impl Clone for ChargeState
Source§fn clone(&self) -> ChargeState
fn clone(&self) -> ChargeState
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 ChargeState
Source§impl Debug for ChargeState
impl Debug for ChargeState
Source§impl<'de> Deserialize<'de> for ChargeState
impl<'de> Deserialize<'de> for ChargeState
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
impl Eq for ChargeState
Source§impl From<bool> for ChargeState
impl From<bool> for ChargeState
Source§impl MaxSize for ChargeState
impl MaxSize for ChargeState
Source§const POSTCARD_MAX_SIZE: usize
const POSTCARD_MAX_SIZE: usize
The maximum possible size that the serialization of this
type can have, in bytes.
Source§impl PartialEq for ChargeState
impl PartialEq for ChargeState
Source§impl Serialize for ChargeState
impl Serialize for ChargeState
impl StructuralPartialEq for ChargeState
Auto Trait Implementations§
impl Freeze for ChargeState
impl RefUnwindSafe for ChargeState
impl Send for ChargeState
impl Sync for ChargeState
impl Unpin for ChargeState
impl UnsafeUnpin for ChargeState
impl UnwindSafe for ChargeState
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