Struct dev_scope::shared::prelude::OutputCapture
source · pub struct OutputCapture {
pub working_dir: PathBuf,
pub exit_code: Option<i32>,
pub command: String,
/* private fields */
}
Fields§
§working_dir: PathBuf
§exit_code: Option<i32>
§command: String
Implementations§
source§impl OutputCapture
impl OutputCapture
pub async fn capture_output(opts: CaptureOpts<'_>) -> Result<Self, CaptureError>
pub fn generate_output(&self) -> String
pub fn create_report_text(&self) -> Result<String>
pub fn get_stdout(&self) -> String
pub fn get_stderr(&self) -> String
Trait Implementations§
source§impl Default for OutputCapture
impl Default for OutputCapture
source§fn default() -> OutputCapture
fn default() -> OutputCapture
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for OutputCapture
impl Send for OutputCapture
impl Sync for OutputCapture
impl Unpin for OutputCapture
impl UnwindSafe for OutputCapture
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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