pub struct ProcResult {
pub stdout: String,
pub stderr: String,
pub exit_code: i32,
pub truncated: bool,
}Expand description
Stable bounded process result; non-zero exit remains a result.
Fields§
§stdout: StringCaptured standard output.
stderr: StringCaptured standard error.
exit_code: i32Native exit code, or -1 when unavailable.
truncated: boolWhether output exceeded its shared cap.
Implementations§
Source§impl ProcResult
impl ProcResult
Sourcepub fn to_constructor_expr(&self) -> Expr
pub fn to_constructor_expr(&self) -> Expr
Converts the result to its stable read-constructor expression.
Trait Implementations§
Source§impl Clone for ProcResult
impl Clone for ProcResult
Source§fn clone(&self) -> ProcResult
fn clone(&self) -> ProcResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcResult
impl Debug for ProcResult
impl Eq for ProcResult
Source§impl PartialEq for ProcResult
impl PartialEq for ProcResult
impl StructuralPartialEq for ProcResult
Auto Trait Implementations§
impl Freeze for ProcResult
impl RefUnwindSafe for ProcResult
impl Send for ProcResult
impl Sync for ProcResult
impl Unpin for ProcResult
impl UnsafeUnpin for ProcResult
impl UnwindSafe for ProcResult
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