pub struct CapturingHookRunner;Expand description
A HookRunner that captures the hook’s stdout/stderr instead of inheriting
the terminal. Used by the TUI’s background jobs (issue #46), which keep the
alternate screen up and animate a spinner — inherited hook output would
otherwise paint over the rendered UI. Behaviorally identical to
RealHookRunner except the captured output is discarded.
Trait Implementations§
Source§impl Clone for CapturingHookRunner
impl Clone for CapturingHookRunner
Source§fn clone(&self) -> CapturingHookRunner
fn clone(&self) -> CapturingHookRunner
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CapturingHookRunner
Source§impl Debug for CapturingHookRunner
impl Debug for CapturingHookRunner
Source§impl Default for CapturingHookRunner
impl Default for CapturingHookRunner
Source§fn default() -> CapturingHookRunner
fn default() -> CapturingHookRunner
Returns the “default value” for a type. Read more
Source§impl HookRunner for CapturingHookRunner
impl HookRunner for CapturingHookRunner
Auto Trait Implementations§
impl Freeze for CapturingHookRunner
impl RefUnwindSafe for CapturingHookRunner
impl Send for CapturingHookRunner
impl Sync for CapturingHookRunner
impl Unpin for CapturingHookRunner
impl UnsafeUnpin for CapturingHookRunner
impl UnwindSafe for CapturingHookRunner
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more