Enum libmacchina::traits::BatteryState
source · pub enum BatteryState {
Charging,
Discharging,
}
Expand description
Holds the possible variants for battery status.
Variants§
Trait Implementations§
source§impl Display for BatteryState
impl Display for BatteryState
source§impl From<BatteryState> for &'static str
impl From<BatteryState> for &'static str
source§fn from(state: BatteryState) -> &'static str
fn from(state: BatteryState) -> &'static str
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BatteryState
impl RefUnwindSafe for BatteryState
impl Send for BatteryState
impl Sync for BatteryState
impl Unpin for BatteryState
impl UnwindSafe for BatteryState
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