pub enum PowerAnimationId {
AcSleep,
AcCharged,
AcCharging,
BatterySleep,
BatteryOn,
BatteryCritical,
}Expand description
Power animations id.
Used to determine in what power situation play the animation.
Variants§
Implementations§
Source§impl PowerAnimationId
impl PowerAnimationId
Sourcepub const fn build_animation(&self) -> u16
pub const fn build_animation(&self) -> u16
Get the animation code
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PowerAnimationId
impl RefUnwindSafe for PowerAnimationId
impl Send for PowerAnimationId
impl Sync for PowerAnimationId
impl Unpin for PowerAnimationId
impl UnsafeUnpin for PowerAnimationId
impl UnwindSafe for PowerAnimationId
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