pub struct Capture { /* private fields */ }Expand description
Framed stdout/stderr chunks, optionally stored on disk without buffering the task’s log, and shown as the task’s display asks.
Implementations§
Source§impl Capture
impl Capture
Sourcepub fn new(file: Option<File>, display: Display) -> Self
pub fn new(file: Option<File>, display: Display) -> Self
Streams output through its display, optionally recording cache frames on disk. A headed display announces the task here, as it starts.
Sourcepub fn retain_log(self) -> Self
pub fn retain_log(self) -> Self
Retains a bounded execution log alongside any result-cache capture.
Sourcepub fn take_log(&self) -> Option<RecordedLog>
pub fn take_log(&self) -> Option<RecordedLog>
Takes the retained log after the command’s output readers have finished.
Sourcepub fn ready_when(self, patterns: &[String], ready: Arc<AtomicBool>) -> Self
pub fn ready_when(self, patterns: &[String], ready: Arc<AtomicBool>) -> Self
Sets ready once every one of patterns has appeared in the output.
pub fn healthy(&self) -> bool
Auto Trait Implementations§
impl !Freeze for Capture
impl RefUnwindSafe for Capture
impl Send for Capture
impl Sync for Capture
impl Unpin for Capture
impl UnsafeUnpin for Capture
impl UnwindSafe for Capture
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