pub struct EvaluatedTask { /* private fields */ }Expand description
Represents an evaluated task.
Implementations§
Source§impl EvaluatedTask
impl EvaluatedTask
Sourcepub fn attempt_dir(&self) -> &Path
pub fn attempt_dir(&self) -> &Path
Gets the attempt directory of the task.
Sourcepub fn work_dir(&self) -> &EvaluationPath
pub fn work_dir(&self) -> &EvaluationPath
Gets the working directory of the evaluated task.
Sourcepub fn outputs(&self) -> &EvaluationResult<Outputs>
pub fn outputs(&self) -> &EvaluationResult<Outputs>
Gets the outputs of the evaluated task.
This is Ok when the task executes successfully and all of the task’s
outputs evaluated without error.
Otherwise, this contains the error that occurred while attempting to evaluate the task’s outputs.
Sourcepub fn into_result(self) -> EvaluationResult<Outputs>
pub fn into_result(self) -> EvaluationResult<Outputs>
Converts the evaluated task into an evaluation result.
Returns Ok(_) if the task outputs were evaluated.
Returns Err(_) if the task outputs could not be evaluated.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EvaluatedTask
impl RefUnwindSafe for EvaluatedTask
impl Send for EvaluatedTask
impl Sync for EvaluatedTask
impl Unpin for EvaluatedTask
impl UnwindSafe for EvaluatedTask
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> 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