pub struct TaskIdentity {
pub id: TaskId,
pub line: u32,
pub heading: Option<String>,
pub targets: Vec<String>,
pub program: ProgramHash,
pub parts: ProgramParts,
pub dir: AbsolutePath,
}Expand description
The identity of a task whose steps the engine runs: what its step positions, last writers, and task record are stored under, and how output names it.
Fields§
§id: TaskIdThe task: the absolute path of its kizz.md and its index in the file.
line: u32The line of the block’s opening fence, counting from 1.
heading: Option<String>The nearest heading above the block, if there is one.
targets: Vec<String>The targets on the block, in the order written.
program: ProgramHashThe hash of the task program.
parts: ProgramPartsThe hashes of the program’s block and modules.
dir: AbsolutePathThe task directory, at which relative patterns are anchored.
Implementations§
Source§impl TaskIdentity
impl TaskIdentity
Sourcepub fn of(program: &TaskProgram) -> Self
pub fn of(program: &TaskProgram) -> Self
The identity of the task of the loaded program program.
Sourcepub fn task_record(
&self,
succeeded: bool,
build: BuildId,
steps: u32,
) -> TaskRecord
pub fn task_record( &self, succeeded: bool, build: BuildId, steps: u32, ) -> TaskRecord
The task record of a run in build that had steps steps and ended as
succeeded says.
Trait Implementations§
Source§impl Clone for TaskIdentity
impl Clone for TaskIdentity
Source§impl Debug for TaskIdentity
impl Debug for TaskIdentity
impl Eq for TaskIdentity
Source§impl PartialEq for TaskIdentity
impl PartialEq for TaskIdentity
impl StructuralPartialEq for TaskIdentity
Auto Trait Implementations§
impl Freeze for TaskIdentity
impl RefUnwindSafe for TaskIdentity
impl Send for TaskIdentity
impl Sync for TaskIdentity
impl Unpin for TaskIdentity
impl UnsafeUnpin for TaskIdentity
impl UnwindSafe for TaskIdentity
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
Mutably borrows from an owned value. Read more
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
Compare self to
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
Checks if this value is equivalent to the given key. Read more
§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
Checks if this value is equivalent to the given key. Read more
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> ⓘ
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