[][src]Enum sdl2_sys::SDL_PowerState

#[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

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

impl Clone for SDL_PowerState[src]

impl Copy for SDL_PowerState[src]

impl Debug for SDL_PowerState[src]

impl Eq for SDL_PowerState[src]

impl Hash for SDL_PowerState[src]

impl PartialEq<SDL_PowerState> for SDL_PowerState[src]

impl StructuralEq for SDL_PowerState[src]

impl StructuralPartialEq for SDL_PowerState[src]

Auto Trait Implementations

impl Send for SDL_PowerState

impl Sync for SDL_PowerState

impl Unpin for SDL_PowerState

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.