[−][src]Struct bawawa::Command
just like standard Command
but keeps the components
in a human readable format so we can actually display
it when needed. or keep trace of it.
a Command is not active unless it has been started
Methods
impl Command
[src]
pub fn new(program: Program) -> Self
[src]
create a new command
pub fn current_working_directory(&mut self, cwd: PathBuf) -> &mut Self
[src]
set the working directory: the directory in which the command will be executed.
pub fn argument<S>(&mut self, argument: S) -> &mut Self where
S: AsRef<str>,
[src]
S: AsRef<str>,
set argument to the command
pub fn arguments<I, S>(&mut self, arguments: I) -> &mut Self where
I: IntoIterator<Item = S>,
S: AsRef<str>,
[src]
I: IntoIterator<Item = S>,
S: AsRef<str>,
set arguments to the command
pub fn spawn(&self) -> Result<Process>
[src]
Trait Implementations
impl PartialEq<Command> for Command
[src]
impl Clone for Command
[src]
fn clone(&self) -> Command
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for Command
[src]
impl Display for Command
[src]
impl Debug for Command
[src]
impl Hash for Command
[src]
Auto Trait Implementations
impl Send for Command
impl Unpin for Command
impl Sync for Command
impl UnwindSafe for Command
impl RefUnwindSafe for Command
Blanket Implementations
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,