Enum sdl2_sys::SDL_PowerState
source · [−]#[repr(u32)]
pub enum SDL_PowerState {
SDL_POWERSTATE_UNKNOWN,
SDL_POWERSTATE_ON_BATTERY,
SDL_POWERSTATE_NO_BATTERY,
SDL_POWERSTATE_CHARGING,
SDL_POWERSTATE_CHARGED,
}
Expand description
\brief The basic state for the system’s power supply.
Variants
SDL_POWERSTATE_UNKNOWN
< cannot determine power status
SDL_POWERSTATE_ON_BATTERY
< Not plugged in, running on the battery
SDL_POWERSTATE_NO_BATTERY
< Plugged in, no battery available
SDL_POWERSTATE_CHARGING
< Plugged in, charging battery
SDL_POWERSTATE_CHARGED
< Plugged in, battery charged
Trait Implementations
sourceimpl Clone for SDL_PowerState
impl Clone for SDL_PowerState
sourcefn clone(&self) -> SDL_PowerState
fn clone(&self) -> SDL_PowerState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SDL_PowerState
impl Debug for SDL_PowerState
sourceimpl Hash for SDL_PowerState
impl Hash for SDL_PowerState
sourceimpl PartialEq<SDL_PowerState> for SDL_PowerState
impl PartialEq<SDL_PowerState> for SDL_PowerState
impl Copy for SDL_PowerState
impl Eq for SDL_PowerState
impl StructuralEq for SDL_PowerState
impl StructuralPartialEq for SDL_PowerState
Auto Trait Implementations
impl RefUnwindSafe for SDL_PowerState
impl Send for SDL_PowerState
impl Sync for SDL_PowerState
impl Unpin for SDL_PowerState
impl UnwindSafe for SDL_PowerState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more