1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Client library for [OpenRGB](https://gitlab.com/CalcProgrammer1/OpenRGB/-/blob/master/Documentation/OpenRGBSDK.md) SDK server.
//!
//! This client is async and requires a [tokio](https://tokio.rs) runtime to run.
//!
//! # Example
//!
//! ```no_run
//! use openrgb2::{OpenRgbResult, OpenRgbClient};
//!
//! #[tokio::main]
//! async fn main() -> OpenRgbResult<()> {
//! // connect to default server at localhost
//! let client = OpenRgbClient::connect().await?;
//! let controllers = client.get_all_controllers().await?;
//! controllers.init().await?;
//! Ok(())
//! }
//! ```
//!
//! This crates provides the `OpenRgbClient` and `Controller` structs.
//! The client is used to connect to the `OpenRGB` server and retrieve `Controller`s,
//! after which RGB control can be done using the `Controller`.
//!
//! See [examples](https://github.com/Achtuur/openrgb-rs2/tree/master/examples), and [`OpenRgbClient`] for client API.
pub use ;
pub use *;
pub