SimpleCommandExt

Trait SimpleCommandExt 

Source
pub trait SimpleCommandExt {
    // Required methods
    fn with_wayland_display(&mut self, display: &str) -> &mut Command;
    fn spawn_and_forward_exit_code(&mut self) -> Result<(), Error>;
}
Expand description

Extensions for Command.

Required Methods§

Source

fn with_wayland_display(&mut self, display: &str) -> &mut Command

Sets the WAYLAND_DISPLAY environment variable.

Source

fn spawn_and_forward_exit_code(&mut self) -> Result<(), Error>

Spawns the application, waits for it to exit, and then calls exit with the same exit code.

Implementations on Foreign Types§

Source§

impl SimpleCommandExt for Command

Implementors§