Expand description
Enable/disable/query the status of Game Mode.
§Examples
use ashpd::desktop::game_mode::GameMode;
async fn run() -> ashpd::Result<()> {
let proxy = GameMode::new().await?;
println!("{:#?}", proxy.register(246612).await?);
println!("{:#?}", proxy.query_status(246612).await?);
println!("{:#?}", proxy.unregister(246612).await?);
println!("{:#?}", proxy.query_status(246612).await?);
Ok(())
}
Structs§
- The interface lets sandboxed applications access GameMode from within the sandbox.
Enums§
- The status of the game mode.