pub struct ChildWaitFacts<'facts> {
pub waiting_for: &'facts str,
pub pid: u32,
pub waited: Duration,
pub limit: Duration,
pub limit_note: &'facts str,
pub repeat: bool,
}Expand description
What: What one notice of a wait for a child process says. Why: A child whose output goes to a file or a pipe is silent while it runs, so the wait names what it waits for, the child’s process, how long it has lasted and where it stops the child.
In TS you’d write (pseudocode):
type ChildWaitFacts = { waitingFor; pid; waitedMs; limitMs; limitNote; repeat };Fields§
§waiting_for: &'facts strWhat the wait is for, in words (“monochromatic-lint to check a.md”).
pid: u32The child’s process.
waited: DurationHow long the wait has lasted.
limit: DurationHow long the child may run before it is stopped.
limit_note: &'facts strWhere the person changes the limit, spelled to follow “seconds”, or empty when nothing changes it.
repeat: boolWhether an earlier notice of this wait already printed the hint.
Trait Implementations§
Source§impl<'facts> Clone for ChildWaitFacts<'facts>
impl<'facts> Clone for ChildWaitFacts<'facts>
impl<'facts> Copy for ChildWaitFacts<'facts>
Auto Trait Implementations§
impl<'facts> Freeze for ChildWaitFacts<'facts>
impl<'facts> RefUnwindSafe for ChildWaitFacts<'facts>
impl<'facts> Send for ChildWaitFacts<'facts>
impl<'facts> Sync for ChildWaitFacts<'facts>
impl<'facts> Unpin for ChildWaitFacts<'facts>
impl<'facts> UnsafeUnpin for ChildWaitFacts<'facts>
impl<'facts> UnwindSafe for ChildWaitFacts<'facts>
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