Struct duct::Expression
[−]
[src]
#[must_use]pub struct Expression { /* fields omitted */ }
Methods
impl Expression
[src]
fn run(&self) -> Result<Output, Error>
fn read(&self) -> Result<String, Error>
fn pipe(&self, right: Expression) -> Expression
fn then(&self, right: Expression) -> Expression
fn input<T: Into<Vec<u8>>>(&self, input: T) -> Self
fn stdin<T: Into<PathBuf>>(&self, path: T) -> Self
fn stdin_file(&self, file: File) -> Self
fn stdin_null(&self) -> Self
fn stdout<T: Into<PathBuf>>(&self, path: T) -> Self
fn stdout_file(&self, file: File) -> Self
fn stdout_null(&self) -> Self
fn stdout_capture(&self) -> Self
fn stdout_to_stderr(&self) -> Self
fn stderr<T: Into<PathBuf>>(&self, path: T) -> Self
fn stderr_file(&self, file: File) -> Self
fn stderr_null(&self) -> Self
fn stderr_capture(&self) -> Self
fn stderr_to_stdout(&self) -> Self
fn dir<T: Into<PathBuf>>(&self, path: T) -> Self
fn env<T, U>(&self, name: T, val: U) -> Self where T: Into<OsString>, U: Into<OsString>
fn full_env<T, U, V>(&self, name_vals: T) -> Self where T: IntoIterator<Item=(U, V)>, U: Into<OsString>, V: Into<OsString>
fn unchecked(&self) -> Self
Trait Implementations
impl Clone for Expression
[src]
fn clone(&self) -> Expression
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more