pub struct CaptureAllStreams { /* private fields */ }Expand description
Builder for capturing both stdout and stderr from a command.
Implementations§
Source§impl CaptureAllStreams
impl CaptureAllStreams
Sourcepub fn accept_nonzero_exit(self) -> Self
pub fn accept_nonzero_exit(self) -> Self
Accept non-zero exit status instead of treating it as an error.
Sourcepub async fn output(self) -> Result<Output, CommandError>
pub async fn output(self) -> Result<Output, CommandError>
Execute the command and return captured output.
Auto Trait Implementations§
impl Freeze for CaptureAllStreams
impl !RefUnwindSafe for CaptureAllStreams
impl Send for CaptureAllStreams
impl Sync for CaptureAllStreams
impl Unpin for CaptureAllStreams
impl !UnwindSafe for CaptureAllStreams
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