Trait constellation::sandboxing::CommandMethods

source ·
trait CommandMethods {
    // Required methods
    fn arg<T>(&mut self, arg: T)
       where T: AsRef<OsStr>;
    fn env<T, U>(&mut self, key: T, val: U)
       where T: AsRef<OsStr>,
             U: AsRef<OsStr>;
}
Expand description

A trait to unify commands launched as multiprocess with or without a sandbox.

Required Methods§

source

fn arg<T>(&mut self, arg: T)
where T: AsRef<OsStr>,

A command line argument.

source

fn env<T, U>(&mut self, key: T, val: U)
where T: AsRef<OsStr>, U: AsRef<OsStr>,

An environment variable.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl CommandMethods for Command

source§

fn arg<T>(&mut self, arg: T)
where T: AsRef<OsStr>,

source§

fn env<T, U>(&mut self, key: T, val: U)
where T: AsRef<OsStr>, U: AsRef<OsStr>,

source§

impl CommandMethods for Command

source§

fn arg<T>(&mut self, arg: T)
where T: AsRef<OsStr>,

source§

fn env<T, U>(&mut self, key: T, val: U)
where T: AsRef<OsStr>, U: AsRef<OsStr>,

Implementors§