pub struct StepResult<T, S: EngineSpec> {
pub output: T,
pub outcome: StepOutcome<S>,
}Expand description
The result of a step.
Returned by the callback passed to register_step.
Fields§
§output: TThe output of the step.
outcome: StepOutcome<S>The outcome associated with the step.
This outcome is serializable.
Implementations§
Source§impl<T, S: EngineSpec> StepResult<T, S>
impl<T, S: EngineSpec> StepResult<T, S>
Sourcepub fn map<U, F>(self, op: F) -> StepResult<U, S>where
F: FnOnce(T) -> U,
pub fn map<U, F>(self, op: F) -> StepResult<U, S>where
F: FnOnce(T) -> U,
Maps a StepResult<T, S> to StepResult<U, S> by applying a
function to the contained output value, leaving the outcome
untouched.
Trait Implementations§
Auto Trait Implementations§
impl<T, S> Freeze for StepResult<T, S>where
T: Freeze,
<S as EngineSpec>::CompletionMetadata: Freeze,
<S as EngineSpec>::SkippedMetadata: Freeze,
impl<T, S> RefUnwindSafe for StepResult<T, S>where
T: RefUnwindSafe,
<S as EngineSpec>::CompletionMetadata: RefUnwindSafe,
<S as EngineSpec>::SkippedMetadata: RefUnwindSafe,
impl<T, S> Send for StepResult<T, S>where
T: Send,
impl<T, S> Sync for StepResult<T, S>where
T: Sync,
impl<T, S> Unpin for StepResult<T, S>where
T: Unpin,
<S as EngineSpec>::CompletionMetadata: Unpin,
<S as EngineSpec>::SkippedMetadata: Unpin,
impl<T, S> UnsafeUnpin for StepResult<T, S>where
T: UnsafeUnpin,
<S as EngineSpec>::CompletionMetadata: UnsafeUnpin,
<S as EngineSpec>::SkippedMetadata: UnsafeUnpin,
impl<T, S> UnwindSafe for StepResult<T, S>where
T: UnwindSafe,
<S as EngineSpec>::CompletionMetadata: UnwindSafe,
<S as EngineSpec>::SkippedMetadata: UnwindSafe,
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