pub enum StepOutcome<TCursor, TState> {
More(TCursor),
Done(TaskResult<TState>),
}Expand description
The outcome returned by a single SteppedTask::step call.
StepOutcome::More— more work remains; the cursor is threaded to the next call.StepOutcome::Done— processing is complete; carry theTaskResultforward to the FSM.
Variants§
More(TCursor)
More steps remain. The cursor will be passed to the next step call.
Done(TaskResult<TState>)
All steps are complete. The inner TaskResult is forwarded to the FSM.
Trait Implementations§
Source§impl<TCursor: Clone, TState: Clone> Clone for StepOutcome<TCursor, TState>
impl<TCursor: Clone, TState: Clone> Clone for StepOutcome<TCursor, TState>
Source§fn clone(&self) -> StepOutcome<TCursor, TState>
fn clone(&self) -> StepOutcome<TCursor, TState>
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 moreimpl<TCursor: Eq, TState: Eq> Eq for StepOutcome<TCursor, TState>
Source§impl<TCursor: PartialEq, TState: PartialEq> PartialEq for StepOutcome<TCursor, TState>
impl<TCursor: PartialEq, TState: PartialEq> PartialEq for StepOutcome<TCursor, TState>
Source§fn eq(&self, other: &StepOutcome<TCursor, TState>) -> bool
fn eq(&self, other: &StepOutcome<TCursor, TState>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<TCursor, TState> StructuralPartialEq for StepOutcome<TCursor, TState>
Auto Trait Implementations§
impl<TCursor, TState> Freeze for StepOutcome<TCursor, TState>
impl<TCursor, TState> RefUnwindSafe for StepOutcome<TCursor, TState>where
TCursor: RefUnwindSafe,
TState: RefUnwindSafe,
impl<TCursor, TState> Send for StepOutcome<TCursor, TState>
impl<TCursor, TState> Sync for StepOutcome<TCursor, TState>
impl<TCursor, TState> Unpin for StepOutcome<TCursor, TState>
impl<TCursor, TState> UnsafeUnpin for StepOutcome<TCursor, TState>where
TCursor: UnsafeUnpin,
TState: UnsafeUnpin,
impl<TCursor, TState> UnwindSafe for StepOutcome<TCursor, TState>where
TCursor: UnwindSafe,
TState: 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