pub struct CmdOutput { /* private fields */ }
Expand description
Holds the output for a command
Features the lines printed (see Line
), the status code, the start time, end time, and duration
Implementations§
Source§impl CmdOutput
impl CmdOutput
Sourcepub fn status_code(self) -> Option<i32>
pub fn status_code(self) -> Option<i32>
Returns the exit status code, if there was one
Sourcepub fn start_time(self) -> Instant
pub fn start_time(self) -> Instant
Returns the time the command was started at
Trait Implementations§
impl Eq for CmdOutput
impl StructuralPartialEq for CmdOutput
Auto Trait Implementations§
impl Freeze for CmdOutput
impl RefUnwindSafe for CmdOutput
impl Send for CmdOutput
impl Sync for CmdOutput
impl Unpin for CmdOutput
impl UnwindSafe for CmdOutput
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