pub struct ParallelBlueprint {
pub mutations: Vec<MutationSpec>,
pub deps: DependencyGraph,
pub conflicts: Vec<Conflict>,
}Expand description
Parallel execution blueprint
Fields§
§mutations: Vec<MutationSpec>Mutation specifications to execute
deps: DependencyGraphDependency graph for ordering
conflicts: Vec<Conflict>Conflicts detected at plan time
Implementations§
Source§impl ParallelBlueprint
impl ParallelBlueprint
Sourcepub fn new() -> ParallelBlueprint
pub fn new() -> ParallelBlueprint
Create a new empty blueprint
Sourcepub fn from_mutations(mutations: Vec<MutationSpec>) -> ParallelBlueprint
pub fn from_mutations(mutations: Vec<MutationSpec>) -> ParallelBlueprint
Create blueprint from mutations (auto-detects conflicts)
Sourcepub fn needs_escalation(&self) -> bool
pub fn needs_escalation(&self) -> bool
Check if escalation to high-level LLM is needed
Sourcepub fn ready_set(&self, completed: &HashSet<usize>) -> Vec<usize>
pub fn ready_set(&self, completed: &HashSet<usize>) -> Vec<usize>
Get mutations ready to execute (all dependencies satisfied)
Sourcepub fn parallelism(&self) -> f64
pub fn parallelism(&self) -> f64
Calculate parallelism factor (1.0 = sequential, N = N parallel tracks)
Sourcepub fn topological_levels(&self) -> Vec<Vec<usize>>
pub fn topological_levels(&self) -> Vec<Vec<usize>>
Get topological levels for parallel execution
Trait Implementations§
Source§impl Clone for ParallelBlueprint
impl Clone for ParallelBlueprint
Source§fn clone(&self) -> ParallelBlueprint
fn clone(&self) -> ParallelBlueprint
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 moreSource§impl Debug for ParallelBlueprint
impl Debug for ParallelBlueprint
Source§impl Default for ParallelBlueprint
impl Default for ParallelBlueprint
Source§fn default() -> ParallelBlueprint
fn default() -> ParallelBlueprint
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParallelBlueprint
impl RefUnwindSafe for ParallelBlueprint
impl Send for ParallelBlueprint
impl Sync for ParallelBlueprint
impl Unpin for ParallelBlueprint
impl UnsafeUnpin for ParallelBlueprint
impl UnwindSafe for ParallelBlueprint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more