Struct subprocess::CaptureData [−][src]
pub struct CaptureData {
pub stdout: Vec<u8>,
pub stderr: Vec<u8>,
pub exit_status: ExitStatus,
}Expand description
Data captured by Exec::capture and Pipeline::capture.
Fields
stdout: Vec<u8>Expand description
Standard output as bytes.
stderr: Vec<u8>Expand description
Standard error as bytes.
exit_status: ExitStatusExpand description
Exit status.
Implementations
impl CaptureData[src]
impl CaptureData[src]pub fn stdout_str(&self) -> String[src]
pub fn stdout_str(&self) -> String[src]Returns the standard output as string, converted from bytes using
String::from_utf8_lossy.
pub fn stderr_str(&self) -> String[src]
pub fn stderr_str(&self) -> String[src]Returns the standard error as string, converted from bytes using
String::from_utf8_lossy.