Enum avrox_display::PowerLevel

source ·
pub enum PowerLevel {
    Hibernate,
    Sleep,
    Reduced,
    Normal,
}
Expand description

Displays may have a variety of power levels - from full power to total hibernation. These generic levels will map to different feature sets in different devices, but the general principle of each level should be maintained.

Variants§

§

Hibernate

The lowest level of power use. Everything should be switched off as far as possible, potentially including display RAM. (i.e. it is not guaranteed that the previous contents of the display will have been retained on exit from this level.)

§

Sleep

The display should be put to sleep; typically this means the output is disabled/not visible (unless a persistent display technology like eInk is being used) but display contents should be preserved.

§

Reduced

The display should be in a reduced power mode. This may result in reduced brightness or refresh rate or other compromises, but the display itself should essentially be functional.

§

Normal

Normal power use.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.