pub enum TaskResult<TState> {
Single(TState),
Split(Vec<TState>),
}Expand description
Result type for task execution that supports both single and split transitions
Variants§
Single(TState)
Transition to a single next state
Split(Vec<TState>)
Split into multiple parallel states for concurrent execution
Trait Implementations§
Source§impl<TState: Clone> Clone for TaskResult<TState>
impl<TState: Clone> Clone for TaskResult<TState>
Source§fn clone(&self) -> TaskResult<TState>
fn clone(&self) -> TaskResult<TState>
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<TState: Debug> Debug for TaskResult<TState>
impl<TState: Debug> Debug for TaskResult<TState>
Source§impl<TState: PartialEq> PartialEq for TaskResult<TState>
impl<TState: PartialEq> PartialEq for TaskResult<TState>
impl<TState: Eq> Eq for TaskResult<TState>
impl<TState> StructuralPartialEq for TaskResult<TState>
Auto Trait Implementations§
impl<TState> Freeze for TaskResult<TState>where
TState: Freeze,
impl<TState> RefUnwindSafe for TaskResult<TState>where
TState: RefUnwindSafe,
impl<TState> Send for TaskResult<TState>where
TState: Send,
impl<TState> Sync for TaskResult<TState>where
TState: Sync,
impl<TState> Unpin for TaskResult<TState>where
TState: Unpin,
impl<TState> UnwindSafe for TaskResult<TState>where
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