use std::error::Error; use openrgb::OpenRGB; #[tokio::main] async fn main() -> Result<(), Box> { // connect to local server let client = OpenRGB::connect_to(("localhost", 6742)).await?; // set client name client.set_name("my client").await?; // print protocol version println!("connected using protocol version {}", client.get_protocol_version()); Ok(()) }