pub enum TaskResolution<T: TaskNodeData> {
Single(T),
Sequential {
children: Vec<String>,
},
Parallel {
children: Vec<String>,
depends_on: Vec<String>,
},
}Expand description
How a task name resolves - single task or group.
This enum represents the three ways a task name can resolve:
- A single leaf task (no children)
- A sequential group (children run in order)
- A parallel group (children run concurrently)
Variants§
Single(T)
A single leaf task with its data.
Sequential
Sequential group - tasks run in order (implicit deps between them).
Children are named like "build[0]", "build[1]" for a group named "build".
Parallel
Parallel group - tasks can run concurrently.
Children are named like "build.frontend", "build.backend" for a group named "build".
Trait Implementations§
Source§impl<T: Clone + TaskNodeData> Clone for TaskResolution<T>
impl<T: Clone + TaskNodeData> Clone for TaskResolution<T>
Source§fn clone(&self) -> TaskResolution<T>
fn clone(&self) -> TaskResolution<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for TaskResolution<T>where
T: Freeze,
impl<T> RefUnwindSafe for TaskResolution<T>where
T: RefUnwindSafe,
impl<T> Send for TaskResolution<T>where
T: Send,
impl<T> Sync for TaskResolution<T>where
T: Sync,
impl<T> Unpin for TaskResolution<T>where
T: Unpin,
impl<T> UnsafeUnpin for TaskResolution<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for TaskResolution<T>where
T: 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