pub trait GameProcess {
    fn launch(command: Command) -> LaunchResult<Self>
    where
        Self: Sized
; fn stop<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = LaunchResult<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn wait<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = LaunchResult<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn is_stopped<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = LaunchResult<bool>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn is_stopped_blocking(&self) -> LaunchResult<bool>; }
Expand description

Trait for game handles to provide the same API on all platforms.

Required Methods§

Should launch the game in a detached state.

Should stop the game.

Should wait until the game has exited.

Should check whether the game is still running.

Should check whether the game is still running.

Implementors§