pub struct WorkflowFold;Expand description
Fold implementation for the task-lifecycle model.
Trait Implementations§
Source§impl RedexFold<WorkflowState> for WorkflowFold
impl RedexFold<WorkflowState> for WorkflowFold
Source§fn apply(
&mut self,
ev: &RedexEvent,
state: &mut WorkflowState,
) -> Result<(), RedexError>
fn apply( &mut self, ev: &RedexEvent, state: &mut WorkflowState, ) -> Result<(), RedexError>
Apply one event to
state. Return an error to stop the fold.Auto Trait Implementations§
impl Freeze for WorkflowFold
impl RefUnwindSafe for WorkflowFold
impl Send for WorkflowFold
impl Sync for WorkflowFold
impl Unpin for WorkflowFold
impl UnsafeUnpin for WorkflowFold
impl UnwindSafe for WorkflowFold
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