Skip to main content

NoWindow

Trait NoWindow 

Source
pub trait NoWindow {
    // Required method
    fn no_window(&mut self) -> &mut Self;
}
Expand description

Suppresses the child’s console window on Windows. A no-op elsewhere.

On Windows this calls creation_flags(CREATE_NO_WINDOW), which replaces any creation flags set earlier on the same command (that is how creation_flags works for both std and tokio). Call it first and OR any further flags yourself with CREATE_NO_WINDOW, or call creation_flags(CREATE_NO_WINDOW | other) directly.

Required Methods§

Source

fn no_window(&mut self) -> &mut Self

Sets the no-window creation flag. Returns self for chaining.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl NoWindow for Command

Source§

fn no_window(&mut self) -> &mut Self

Implementors§