[−][src]Struct openrazer::device_manager::DeviceManager
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]
&'_ self
) -> Result<HashMap<String, [u16; 2]>, Error>
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
Auto Trait Implementations
impl !RefUnwindSafe for DeviceManager
impl Send for DeviceManager
impl Sync for DeviceManager
impl Unpin for DeviceManager
impl !UnwindSafe for DeviceManager
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,