Skip to main content

Quiet

Trait Quiet 

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

Spawn without a visible console window.

Implemented for both Command types magi uses - std for the few synchronous calls, tokio for everything else - so a call site does not have to know which one it is holding, and so no call site has to repeat a #[cfg(windows)] block to get it.

A no-op off Windows, where a spawned process has no window to begin with.

Required Methods§

Source

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

Apply it, and hand the command back for further building.

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 Quiet for Command

Source§

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

Source§

impl Quiet for Command

Source§

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

Implementors§