pub struct HostCommand {
pub name: String,
pub program: PathBuf,
pub args: Vec<String>,
pub env: BTreeMap<String, String>,
pub dir: PathBuf,
pub stdin: Option<Bytes>,
}Expand description
A program to run.
Fields§
§name: StringNames the process in messages.
program: PathBufThe file to execute.
args: Vec<String>The arguments, not including the program itself.
env: BTreeMap<String, String>The program’s whole environment: nothing is inherited.
dir: PathBufThe working directory.
stdin: Option<Bytes>Written to the program’s standard input, which is then closed. Without it, the program has no standard input.
Trait Implementations§
Source§impl Clone for HostCommand
impl Clone for HostCommand
Source§fn clone(&self) -> HostCommand
fn clone(&self) -> HostCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for HostCommand
impl RefUnwindSafe for HostCommand
impl Send for HostCommand
impl Sync for HostCommand
impl Unpin for HostCommand
impl UnsafeUnpin for HostCommand
impl UnwindSafe for HostCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more