[][src]Struct openrazer::device_manager::DeviceManager

pub struct DeviceManager { /* fields omitted */ }

Manages Razer devices.

Implementations

impl DeviceManager[src]

pub async fn new() -> Result<Self>[src]

Constructs a DeviceManager.

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

Fetches the daemon's version.

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

Stops the daemon.

pub async fn supported_devices<'_>(
    &'_ self
) -> Result<HashMap<String, [u16; 2]>, Error>
[src]

Fetches supported devices.

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

Fetches connected devices.

pub fn turn_off_on_screensaver(&self) -> TurnOffOnScreensaver[src]

Controls whether devices' lighting is disabled on lockscreen.

pub fn sync_effects(&self) -> SyncEffects[src]

Conrols whether applied effects are synchronized across all devices.

Trait Implementations

impl Debug for DeviceManager[src]

Auto Trait Implementations

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.