pub struct Render {
pub base: PathBuf,
pub home: Option<PathBuf>,
pub verbose: bool,
}Expand description
How explanations are rendered.
Fields§
§base: PathBufPaths under this directory are shown relative to it.
home: Option<PathBuf>Paths under this directory, the caller’s home directory, start with ~/.
verbose: boolWhether environment values and stdin text are shown.
Implementations§
Source§impl Render
impl Render
Sourcepub fn not_cached(&self, why: &NotCachedReason) -> String
pub fn not_cached(&self, why: &NotCachedReason) -> String
Why a run could not be cached, with the files that changed after the command read them shown as other paths are, each with who changed it.
Sourcepub fn task(&self, label: &TaskLabel) -> String
pub fn task(&self, label: &TaskLabel) -> String
A task as output names it: path/kizz.md:LINE (Heading), or the path alone
when the line is unknown.
Sourcepub fn reason_line(&self, reason: &Reason) -> String
pub fn reason_line(&self, reason: &Reason) -> String
One reason on one line.
Sourcepub fn reason_full(&self, reason: &Reason) -> Vec<String>
pub fn reason_full(&self, reason: &Reason) -> Vec<String>
One reason in full, on one or more lines.
Sourcepub fn one_line(&self, verdict: &Verdict) -> String
pub fn one_line(&self, verdict: &Verdict) -> String
The one-line reason of a verdict, as kizz build prints it for each command.
Sourcepub fn full(&self, verdict: &Verdict) -> Vec<String>
pub fn full(&self, verdict: &Verdict) -> Vec<String>
The full reasons of a verdict, as --explain and kizz why print them:
ran because: and every reason in full, or the cached line, then the
warning for consecutive builds when it applies.
Sourcepub fn repeated(&self, warning: &RepeatedWarning) -> String
pub fn repeated(&self, warning: &RepeatedWarning) -> String
The loud warning for a step that re-ran in consecutive builds for the same
self-inflicted reason, as the build summary and kizz why show it.
Source§impl Render
impl Render
Sourcepub fn why(&self, report: &WhyReport) -> String
pub fn why(&self, report: &WhyReport) -> String
The report of kizz why as text: each task with its targets, and each step
with its command, its full reasons, its untracked /proc and /sys accesses,
on a line of their own its connections, or that it made none, and the system
calls it made that the tracer does not know, when there are any, the recorded
machine state of each part it names, or with --verbose of every part, one
line for each, and how many accesses it ignored.
Trait Implementations§
impl Eq for Render
impl StructuralPartialEq for Render
Auto Trait Implementations§
impl Freeze for Render
impl RefUnwindSafe for Render
impl Send for Render
impl Sync for Render
impl Unpin for Render
impl UnsafeUnpin for Render
impl UnwindSafe for Render
Blanket Implementations§
impl<T> AsTypeStaticRegistered for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
impl<T> HasTyVTable for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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