Skip to main content

IntoCommand

Trait IntoCommand 

Source
pub trait IntoCommand {
    // Required method
    fn into_command(self) -> Option<Command>;
}
Expand description

What cx.process and cx.exec_detached run: a Command, or the program and its arguments as a list, such as ["sleep", "30"], as Quickshell’s command is.

Required Methods§

Source

fn into_command(self) -> Option<Command>

The command, or None for an empty list.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl IntoCommand for Command

Source§

impl<S: AsRef<OsStr>, const N: usize> IntoCommand for [S; N]

Source§

impl<S: AsRef<OsStr>> IntoCommand for Vec<S>

Implementors§