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§
Sourcefn command_line_rev(&self) -> impl IntoIterator<Item = &str>
fn command_line_rev(&self) -> impl IntoIterator<Item = &str>
Returns a command name and its arguments in a reverse order.
Sourcefn environment_variables(&self) -> impl IntoIterator<Item = (&str, &str)>
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.