Enum rich_sdl2_rust::event::joystick::power_level::PowerLevel
source · #[non_exhaustive]pub enum PowerLevel {
Unknown,
Empty,
Low,
Medium,
Full,
Wired,
}
Expand description
A power level of a joystick.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown
A power level is unavailable.
Empty
The power level is a few left.
Low
The power level is on low.
Medium
The power level is on medium.
Full
The power level is full.
Wired
The power is coming from wired.
Trait Implementations§
source§impl Clone for PowerLevel
impl Clone for PowerLevel
source§fn clone(&self) -> PowerLevel
fn clone(&self) -> PowerLevel
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 PowerLevel
impl Debug for PowerLevel
source§impl From<i32> for PowerLevel
impl From<i32> for PowerLevel
impl Copy for PowerLevel
Auto Trait Implementations§
impl RefUnwindSafe for PowerLevel
impl Send for PowerLevel
impl Sync for PowerLevel
impl Unpin for PowerLevel
impl UnwindSafe for PowerLevel
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