pub struct CommandOutput { /* private fields */ }Expand description
A bounded child-process result with timeout and overflow state.
Implementations§
Source§impl CommandOutput
impl CommandOutput
Sourcepub fn timed_out(&self) -> bool
pub fn timed_out(&self) -> bool
Returns whether the deadline was reached before the bounded execution completed.
The direct child is killed only when it was still running. When it had
already exited — for example because a descendant still held the output
pipe open — the flag still reports that the deadline was reached and
the bounded execution did not complete, and the direct child’s exit
code stays observable through Self::exit_code.
Sourcepub fn output_limited(&self) -> bool
pub fn output_limited(&self) -> bool
Returns whether the child was killed because an output stream exceeded its bound.
Trait Implementations§
Source§impl Clone for CommandOutput
impl Clone for CommandOutput
Source§impl Debug for CommandOutput
impl Debug for CommandOutput
impl Eq for CommandOutput
Source§impl PartialEq for CommandOutput
impl PartialEq for CommandOutput
impl StructuralPartialEq for CommandOutput
Auto Trait Implementations§
impl Freeze for CommandOutput
impl RefUnwindSafe for CommandOutput
impl Send for CommandOutput
impl Sync for CommandOutput
impl Unpin for CommandOutput
impl UnsafeUnpin for CommandOutput
impl UnwindSafe for CommandOutput
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