Module ashpd::desktop::game_mode [−][src]
Expand description
Enable/disable/query the status of Game Mode.
Examples
use ashpd::desktop::game_mode::GameModeProxy; async fn run() -> Result<(), ashpd::Error> { let connection = zbus::azync::Connection::new_session().await?; let proxy = GameModeProxy::new(&connection).await?; println!("{:#?}", proxy.register_game(246612).await?); println!("{:#?}", proxy.query_status(246612).await?); println!("{:#?}", proxy.unregister_game(246612).await?); println!("{:#?}", proxy.query_status(246612).await?); Ok(()) }
Structs
GameModeProxy | The interface lets sandboxed applications access GameMode from within the sandbox. |
Enums
Status | The status of the game mode. |