[−][src]Struct command_builder::Single
Holds a single command to be run.
Implementations
impl Single[src]
pub fn new(command: &str) -> Self[src]
Creates a new Command which can be run in the shell.
pub fn a(self, argument: &str) -> Self[src]
Adds an argument to the command.
pub fn args(self, arguments: &[&str]) -> Self[src]
Adds multiple arguments.
Trait Implementations
impl Clone for Single[src]
impl Command for Single[src]
fn run_internal(
&self,
input: Option<&str>,
do_clear_env: bool,
env: HashMap<String, String>,
del_env: HashSet<String>,
path: Option<PathBuf>
) -> Result<Output, Error>[src]
&self,
input: Option<&str>,
do_clear_env: bool,
env: HashMap<String, String>,
del_env: HashSet<String>,
path: Option<PathBuf>
) -> Result<Output, Error>
fn and<C: Command>(self, other: C) -> And<Self, C>[src]
fn or<C: Command>(self, other: C) -> Or<Self, C>[src]
fn then<C: Command>(self, other: C) -> Then<Self, C>[src]
fn pipe<C: Command>(self, other: C) -> Pipe<Self, C>[src]
fn env(self, key: &str, value: &str) -> Env<Self>[src]
fn clear_envs(self) -> ClearEnv<Self>[src]
fn without_env(self, key: &str) -> ExceptEnv<Self>[src]
fn without_envs<I: IntoIterator<Item = String>>(
self,
envs: I
) -> ExceptEnvs<Self, I>[src]
self,
envs: I
) -> ExceptEnvs<Self, I>
fn with_dir<P: AsRef<Path>>(self, dir: P) -> Dir<Self>[src]
fn run(&self) -> Result<Output>[src]
fn with_input(self, input: &str) -> Input<Self>[src]
impl Debug for Single[src]
impl Eq for Single[src]
impl PartialEq<Single> for Single[src]
impl StructuralEq for Single[src]
impl StructuralPartialEq for Single[src]
Auto Trait Implementations
impl RefUnwindSafe for Single
impl Send for Single
impl Sync for Single
impl Unpin for Single
impl UnwindSafe for Single
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,