pub struct PipeSpawnRequest {
pub argv: Vec<String>,
pub cwd: Option<PathBuf>,
pub env: Vec<(String, String)>,
pub clear_inherited_env: bool,
pub originator: Option<String>,
pub merge_stderr_into_stdout: bool,
}Fields§
§argv: Vec<String>§cwd: Option<PathBuf>§env: Vec<(String, String)>§clear_inherited_env: bool§originator: Option<String>§merge_stderr_into_stdout: boolImplementations§
Source§impl PipeSpawnRequest
impl PipeSpawnRequest
pub fn new<S: Into<String>>(argv: impl IntoIterator<Item = S>) -> Self
pub fn with_cwd(self, cwd: impl Into<PathBuf>) -> Self
pub fn with_originator(self, originator: impl Into<String>) -> Self
pub fn merge_stderr(self) -> Self
pub fn with_envs<I, K, V>(self, env: I) -> Self
Trait Implementations§
Source§impl Clone for PipeSpawnRequest
impl Clone for PipeSpawnRequest
Source§fn clone(&self) -> PipeSpawnRequest
fn clone(&self) -> PipeSpawnRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PipeSpawnRequest
impl RefUnwindSafe for PipeSpawnRequest
impl Send for PipeSpawnRequest
impl Sync for PipeSpawnRequest
impl Unpin for PipeSpawnRequest
impl UnsafeUnpin for PipeSpawnRequest
impl UnwindSafe for PipeSpawnRequest
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