ProcessContext

Trait ProcessContext 

Source
pub trait ProcessContext {
    // Required methods
    fn command_line_rev(&self) -> impl IntoIterator<Item = &str>;
    fn environment_variables(&self) -> impl IntoIterator<Item = (&str, &str)>;
}
Expand description

A process context.

Required Methods§

Source

fn command_line_rev(&self) -> impl IntoIterator<Item = &str>

Returns a command name and its arguments in a reverse order.

Source

fn environment_variables(&self) -> impl IntoIterator<Item = (&str, &str)>

Returns environment variables.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§