pub struct StepResult {
pub state: Value,
pub output: TaskOutput,
}Expand description
The outcome of one StatefulTask step: a new checkpoint plus the output.
Fields§
§state: ValueState to persist for the next attempt/run.
output: TaskOutputOutput to report as the task result.
Implementations§
Source§impl StepResult
impl StepResult
Sourcepub fn new(state: Value, output: TaskOutput) -> Self
pub fn new(state: Value, output: TaskOutput) -> Self
Build a step result.
Trait Implementations§
Source§impl Clone for StepResult
impl Clone for StepResult
Source§fn clone(&self) -> StepResult
fn clone(&self) -> StepResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StepResult
impl RefUnwindSafe for StepResult
impl Send for StepResult
impl Sync for StepResult
impl Unpin for StepResult
impl UnsafeUnpin for StepResult
impl UnwindSafe for StepResult
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