pub struct EvaluatedTask { /* private fields */ }Expand description
Represents an evaluated task.
An evaluated task is one that was executed by a task execution backend.
The evaluated task may have failed as a result of an unacceptable exit code.
Use EvaluatedTask::into_outputs to get the outputs of the task.
Implementations§
Source§impl EvaluatedTask
impl EvaluatedTask
Sourcepub fn failed(&self) -> bool
pub fn failed(&self) -> bool
Gets whether or not the evaluated task failed as a result of an unacceptable exit code.
Sourcepub fn cached(&self) -> bool
pub fn cached(&self) -> bool
Determines whether or not the task execution result was used from the call cache.
Sourcepub fn work_dir(&self) -> &EvaluationPath
pub fn work_dir(&self) -> &EvaluationPath
Gets the working directory of the evaluated task.
Sourcepub fn into_outputs(self) -> EvaluationResult<Outputs>
pub fn into_outputs(self) -> EvaluationResult<Outputs>
Converts the evaluated task into its Outputs.
An error is returned if the task failed as a result of an unacceptable exit code.
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