Enum sdl2_sys::SDL_PowerState [−][src]
#[repr(u32)] pub enum SDL_PowerState { SDL_POWERSTATE_UNKNOWN, SDL_POWERSTATE_ON_BATTERY, SDL_POWERSTATE_NO_BATTERY, SDL_POWERSTATE_CHARGING, SDL_POWERSTATE_CHARGED, }
\brief The basic state for the system’s power supply.
Variants
< cannot determine power status
< Not plugged in, running on the battery
< Plugged in, no battery available
< Plugged in, charging battery
< Plugged in, battery charged
Trait Implementations
impl Clone for SDL_PowerState
[src]
impl Clone for SDL_PowerState
[src]fn clone(&self) -> SDL_PowerState
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SDL_PowerState
[src]
impl Copy for SDL_PowerState
[src]impl Eq for SDL_PowerState
[src]
impl Eq for SDL_PowerState
[src]impl Hash for SDL_PowerState
[src]
impl Hash for SDL_PowerState
[src]impl PartialEq<SDL_PowerState> for SDL_PowerState
[src]
impl PartialEq<SDL_PowerState> for SDL_PowerState
[src]fn eq(&self, other: &SDL_PowerState) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl StructuralEq for SDL_PowerState
[src]
impl StructuralEq for SDL_PowerState
[src]impl StructuralPartialEq for SDL_PowerState
[src]
impl StructuralPartialEq for SDL_PowerState
[src]