pub struct CapturedOutput {
pub text: String,
pub truncated: bool,
pub exit_code: Option<i32>,
}Expand description
Result of capturing shell command output.
Fields§
§text: StringThe captured text (may be truncated).
truncated: boolWhether the output was truncated at MAX_CAPTURE_BYTES.
exit_code: Option<i32>The exit code of the process, if available.
Trait Implementations§
Source§impl Clone for CapturedOutput
impl Clone for CapturedOutput
Source§fn clone(&self) -> CapturedOutput
fn clone(&self) -> CapturedOutput
Returns a duplicate of the value. Read more
1.0.0 · 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 CapturedOutput
impl Debug for CapturedOutput
Source§impl PartialEq for CapturedOutput
impl PartialEq for CapturedOutput
impl Eq for CapturedOutput
impl StructuralPartialEq for CapturedOutput
Auto Trait Implementations§
impl Freeze for CapturedOutput
impl RefUnwindSafe for CapturedOutput
impl Send for CapturedOutput
impl Sync for CapturedOutput
impl Unpin for CapturedOutput
impl UnsafeUnpin for CapturedOutput
impl UnwindSafe for CapturedOutput
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