pub struct ShellOutput { /* private fields */ }Expand description
Output of a successful shell command execution.
Contains the captured stdout, stderr, exit code, and duration.
Implementations§
Source§impl ShellOutput
impl ShellOutput
Sourcepub fn stdout(&self) -> &str
pub fn stdout(&self) -> &str
Return the captured standard output, trimmed and truncated to
MAX_OUTPUT_SIZE.
Sourcepub fn stderr(&self) -> &str
pub fn stderr(&self) -> &str
Return the captured standard error, trimmed and truncated to
MAX_OUTPUT_SIZE.
Sourcepub fn duration_ms(&self) -> u64
pub fn duration_ms(&self) -> u64
Return the wall-clock duration of the command in milliseconds.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShellOutput
impl RefUnwindSafe for ShellOutput
impl Send for ShellOutput
impl Sync for ShellOutput
impl Unpin for ShellOutput
impl UnsafeUnpin for ShellOutput
impl UnwindSafe for ShellOutput
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