[][src]Struct openrazer::capabilities::GameMode

pub struct GameMode(_);

Controls a device's Game Mode.

Implementations

impl GameMode[src]

pub async fn get<'_>(&'_ self) -> Result<bool, Error>[src]

Checks if Game Mode is enabled.

pub async fn set<'_>(&'_ self, is_enabled: bool) -> Result<(), Error>[src]

Sets Game Mode status.

pub async fn enable<'_>(&'_ self) -> Result<(), Error>[src]

Enables Game Mode.

pub async fn disable<'_>(&'_ self) -> Result<(), Error>[src]

Disables Game Mode.

Trait Implementations

impl Clone for GameMode[src]

impl Debug for GameMode[src]

Auto Trait Implementations

impl !RefUnwindSafe for GameMode

impl Send for GameMode

impl Sync for GameMode

impl Unpin for GameMode

impl !UnwindSafe for GameMode

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.