Struct cmd_lib::FunChildren
source · pub struct FunChildren { /* private fields */ }
Expand description
Representation of running or exited children processes with output, connected with pipes optionally.
Calling spawn_with_output! macro will return Result<FunChildren>
Implementations§
source§impl FunChildren
impl FunChildren
sourcepub fn wait_with_all(&mut self) -> (CmdResult, String, String)
pub fn wait_with_all(&mut self) -> (CmdResult, String, String)
Waits for the children processes to exit completely, returning the command result, stdout content string and stderr content string.
sourcepub fn wait_with_output(&mut self) -> FunResult
pub fn wait_with_output(&mut self) -> FunResult
Waits for the children processes to exit completely, returning the stdout output.
sourcepub fn wait_with_raw_output(&mut self, buf: &mut Vec<u8>) -> CmdResult
pub fn wait_with_raw_output(&mut self, buf: &mut Vec<u8>) -> CmdResult
Waits for the children processes to exit completely, and read all bytes from stdout into buf
.
Auto Trait Implementations§
impl !RefUnwindSafe for FunChildren
impl Send for FunChildren
impl Sync for FunChildren
impl Unpin for FunChildren
impl !UnwindSafe for FunChildren
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