pub struct ProcResult {
pub stdout: String,
pub stderr: String,
pub exit_code: i32,
pub truncated: bool,
}Expand description
Result of a bounded process run.
Fields§
§stdout: StringCaptured stdout, lossily decoded as UTF-8 after byte capping.
stderr: StringCaptured stderr, lossily decoded as UTF-8 after byte capping.
exit_code: i32Process exit code, or -1 when the host reports no numeric code.
truncated: boolWhether stdout or stderr exceeded the shared output byte cap.
Implementations§
Source§impl ProcResult
impl ProcResult
Sourcepub fn to_constructor_expr(&self) -> Expr
pub fn to_constructor_expr(&self) -> Expr
Encodes this result as #(ProcResult stdout stderr exit_code truncated).
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