[−][src]Struct command_builder::Dir
Sets the directory of the command.
Trait Implementations
impl<C: Clone> Clone for Dir<C> where
C: Command,
[src]
C: Command,
impl<C: Command> Command for Dir<C>
[src]
fn run_internal(
&self,
input: Option<&str>,
clear_env: bool,
envs: HashMap<String, String>,
del_envs: HashSet<String>,
_: Option<PathBuf>
) -> Result<Output, Error>
[src]
&self,
input: Option<&str>,
clear_env: bool,
envs: HashMap<String, String>,
del_envs: HashSet<String>,
_: 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<C: Command> Debug for Dir<C>
[src]
Auto Trait Implementations
impl<C> RefUnwindSafe for Dir<C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<C> Send for Dir<C> where
C: Send,
C: Send,
impl<C> Sync for Dir<C> where
C: Sync,
C: Sync,
impl<C> Unpin for Dir<C> where
C: Unpin,
C: Unpin,
impl<C> UnwindSafe for Dir<C> where
C: UnwindSafe,
C: UnwindSafe,
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>,