pub struct TaskRunSummary { /* private fields */ }Expand description
Successful completion facts for one generic task invocation.
Implementations§
Source§impl TaskRunSummary
impl TaskRunSummary
Sourcepub const fn kind(&self) -> TaskRunKind
pub const fn kind(&self) -> TaskRunKind
Returns whether this task executed a model or a program.
Sourcepub fn program(&self) -> Option<&Path>
pub fn program(&self) -> Option<&Path>
Returns the resolved launcher executable for a program task.
For a nested Python declaration this is its interpreter or environment
manager; durable program.json retains the canonical script path.
Sourcepub fn program_kind(&self) -> Option<&str>
pub fn program_kind(&self) -> Option<&str>
Returns the resolved program workload kind (program or python).
Sourcepub fn python_script(&self) -> Option<&Path>
pub fn python_script(&self) -> Option<&Path>
Returns the canonical script path for a nested Python task.
Sourcepub const fn final_iteration(&self) -> Option<u64>
pub const fn final_iteration(&self) -> Option<u64>
Returns the maximum final model iteration for a scientific task.
Sourcepub fn models(&self) -> &[ModelRunSummary]
pub fn models(&self) -> &[ModelRunSummary]
Returns independently recorded model results in stable unit order.
A standalone model produces one entry, an ensemble produces one entry per model, and a program task produces none.
Sourcepub fn output_directory(&self) -> &Path
pub fn output_directory(&self) -> &Path
Returns the task output root or program workspace directory.
This is also the recording directory for a one-model execution unit.
Use Self::models for every per-model recording path.
Trait Implementations§
Source§impl Clone for TaskRunSummary
impl Clone for TaskRunSummary
Source§fn clone(&self) -> TaskRunSummary
fn clone(&self) -> TaskRunSummary
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for TaskRunSummary
impl RefUnwindSafe for TaskRunSummary
impl Send for TaskRunSummary
impl Sync for TaskRunSummary
impl Unpin for TaskRunSummary
impl UnsafeUnpin for TaskRunSummary
impl UnwindSafe for TaskRunSummary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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