use std::error::Error; use openrgb::OpenRGB; #[tokio::main] async fn main() -> Result<(), Box> { // connect to local server let client = OpenRGB::connect().await?; // query controllers count let controllers = client.get_controller_count().await?; // query and print each controller data for controller_id in 0..controllers { println!("controller {}: {:#?}", controller_id, client.get_controller(controller_id).await?); } Ok(()) }