pub struct InitializationContext { /* private fields */ }Expand description
Immutable dependency results, execution facts, and optional seed derivation.
Workflow creates one context for each execution-unit initialization. A unit may inspect completed correlated dependencies. A stochastic unit requests only the named seeds it actually needs; Workflow derives them without counters or request-order dependence and records successful requests with the affected member’s output metadata.
Implementations§
Source§impl InitializationContext
impl InitializationContext
Sourcepub const fn dependencies(&self) -> &Dependencies
pub const fn dependencies(&self) -> &Dependencies
Returns completed summaries from the task’s declared dependency phases.
Sourcepub const fn has_master_seed(&self) -> bool
pub const fn has_master_seed(&self) -> bool
Returns whether wf_configs/study.json supplied a master seed.
Derives a seed shared by all members in this execution unit.
purpose is a stable, nonempty semantic name such as "pairing".
Repeating the same request returns the same seed and metadata entry.
Sourcepub fn member_seed(
&self,
member_identity: &str,
purpose: &str,
) -> Result<u64, SeedError>
pub fn member_seed( &self, member_identity: &str, purpose: &str, ) -> Result<u64, SeedError>
Derives a seed belonging to one member exposed by this execution unit.
member_identity must exactly match that member’s MemberView identity;
Workflow rejects an initialization that requested a seed for an unknown
member. purpose is a stable, nonempty semantic name such as
"initialization" or "replacement".
Auto Trait Implementations§
impl !Freeze for InitializationContext
impl RefUnwindSafe for InitializationContext
impl Send for InitializationContext
impl Sync for InitializationContext
impl Unpin for InitializationContext
impl UnsafeUnpin for InitializationContext
impl UnwindSafe for InitializationContext
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
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> ⓘ
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> ⓘ
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