pub enum ProgressKind<'a> {
TaskStarted {
id: &'a str,
},
TaskRetried {
id: &'a str,
retry: u64,
},
TaskExecutionStarted {
id: &'a str,
},
TaskExecutionCompleted {
id: &'a str,
result: &'a Result<TaskExecutionResult>,
},
TaskCompleted {
id: &'a str,
result: &'a EvaluationResult<EvaluatedTask>,
},
WorkflowStarted {
id: &'a str,
},
WorkflowCompleted {
id: &'a str,
result: &'a EvaluationResult<Outputs>,
},
}Expand description
Represents the kind of progress made during evaluation.
Variants§
TaskStarted
A task with the given id has started evaluation.
TaskRetried
A task has been retried.
Fields
TaskExecutionStarted
A task with the given id has started execution.
Note that a task may have multiple executions as a result of retrying failed executions.
TaskExecutionCompleted
A task with the given id has completed execution.
Fields
§
result: &'a Result<TaskExecutionResult>The result from the task’s execution.
This may be Err if the task failed to complete.
TaskCompleted
A task with the given id has completed evaluation.
Fields
§
result: &'a EvaluationResult<EvaluatedTask>The result of task evaluation.
WorkflowStarted
A workflow with the given id has started evaluation.
WorkflowCompleted
A workflow with the given id has completed evaluation.
Fields
§
result: &'a EvaluationResult<Outputs>The result of workflow evaluation.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for ProgressKind<'a>
impl<'a> Clone for ProgressKind<'a>
Source§fn clone(&self) -> ProgressKind<'a>
fn clone(&self) -> ProgressKind<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ProgressKind<'a>
impl<'a> Debug for ProgressKind<'a>
impl<'a> Copy for ProgressKind<'a>
Auto Trait Implementations§
impl<'a> Freeze for ProgressKind<'a>
impl<'a> RefUnwindSafe for ProgressKind<'a>
impl<'a> Send for ProgressKind<'a>
impl<'a> Sync for ProgressKind<'a>
impl<'a> Unpin for ProgressKind<'a>
impl<'a> UnwindSafe for ProgressKind<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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