pub struct RawOutput {
pub stdout: Vec<u8>,
pub stderr: Vec<u8>,
}
Expand description
The slurped streams for a synchronously-invoked process, as raw bytes.
Fields§
§stdout: Vec<u8>
§stderr: Vec<u8>
Implementations§
Source§impl RawOutput
impl RawOutput
Sourcepub fn extract(
command: Command,
output: Output,
) -> Result<Self, CommandErrorWrapper>
pub fn extract( command: Command, output: Output, ) -> Result<Self, CommandErrorWrapper>
Parse the process’s exit status with
exe::CommandError::analyze_exit_status
.
Sourcepub fn decode(
&self,
command: Command,
) -> Result<DecodedOutput<'_>, CommandErrorWrapper>
pub fn decode( &self, command: Command, ) -> Result<DecodedOutput<'_>, CommandErrorWrapper>
Decode the output streams of this process, with the invoking command
provided for error context.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RawOutput
impl RefUnwindSafe for RawOutput
impl Send for RawOutput
impl Sync for RawOutput
impl Unpin for RawOutput
impl UnwindSafe for RawOutput
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