pub struct ExecIo { /* private fields */ }Implementations§
Source§impl ExecIo
impl ExecIo
pub fn new() -> Self
pub fn set_stdin(&mut self, stdin: Option<SharedInput>)
pub fn set_stdout(&mut self, stdout: Option<SharedOutput>)
pub fn set_stderr(&mut self, stderr: Option<SharedOutput>)
pub fn insert_inherit_env<S: Into<String>, V: Into<String>>( &mut self, key: S, value: V, )
pub fn remove_inherit_env<S: Into<String>>(&mut self, key: S)
pub fn inherit_env_value(&self, key: &str) -> Option<&String>
pub fn inherit_env_is_removed(&self, key: &str) -> bool
pub fn inherit_env_overrides(&self) -> &HashMap<String, String>
Sourcepub fn peek_pipe_content(&self, handle: &PipeHandle) -> Result<Vec<u8>>
pub fn peek_pipe_content(&self, handle: &PipeHandle) -> Result<Vec<u8>>
Non-destructive snapshot of a script handle’s buffered bytes for pipe-content assertions.
Public so out-of-crate harnesses can assert on script-owned pipes
after a run completes, via the PIPE values in the returned
bindings. Only meaningful once writers detached (post-run);
unbound handles and OS pairs bail loudly.
pub fn stdin(&self) -> Option<SharedInput>
pub fn stdout(&self) -> Option<SharedOutput>
pub fn stderr(&self) -> Option<SharedOutput>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExecIo
impl RefUnwindSafe for ExecIo
impl Send for ExecIo
impl Sync for ExecIo
impl Unpin for ExecIo
impl UnsafeUnpin for ExecIo
impl UnwindSafe for ExecIo
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