use openrgb2::{OpenRgbClient, OpenRgbResult};
#[tokio::main]
async fn main() -> OpenRgbResult<()> {
// connect to local server
let client = OpenRgbClient::connect().await?;
// get profiles names
println!("profiles: {:?}", client.get_profiles().await?);
// save the current configuration to a new profile
client.save_profile("my profile").await?;
// load a profile by name
client.load_profile("my profile").await?;
// delete a profile by name
client.delete_profile("my profile").await?;
Ok(())
}