openrgb2 0.3.0

OpenRGB SDK client, successor to openrgb
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use openrgb2::{OpenRgbClient, OpenRgbResult};

#[tokio::main]
async fn main() -> OpenRgbResult<()> {
    // connect to local server at 127.0.0.1:6742
    let mut client = OpenRgbClient::connect().await?;

    client.set_name("My Rust Client").await?;
    println!(
        "connected using protocol version {}",
        client.get_protocol_version()
    );

    Ok(())
}