pub struct Builder { /* private fields */ }Expand description
Builder for Orchestrator. Use Orchestrator::builder to obtain one.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn cache<C: Cache + 'static>(self, c: C) -> Self
pub fn cache<C: Cache + 'static>(self, c: C) -> Self
Set the cache backend. Required — build() errors otherwise.
Sourcepub fn cache_boxed(self, c: Box<dyn Cache>) -> Self
pub fn cache_boxed(self, c: Box<dyn Cache>) -> Self
Set an already-boxed cache backend. Useful when the concrete type
is only known at runtime (federation hooks return Box<dyn Cache>).
Sourcepub fn manifest(self, m: Manifest) -> Self
pub fn manifest(self, m: Manifest) -> Self
Attach the parsed manifest snapshot (optional, for downstream consumers).
Sourcepub fn max_parallelism(self, n: usize) -> Self
pub fn max_parallelism(self, n: usize) -> Self
Cap on concurrent in-flight actions. Floored to 1 (zero is meaningless).
Draw concurrency permits from an externally-owned pool instead of a
private one. Used by federation so --jobs N bounds the whole
tree of orchestrators, not N per level. Overrides
Self::max_parallelism when set.
Sourcepub fn register<A: Action + 'static>(self, a: A) -> Self
pub fn register<A: Action + 'static>(self, a: A) -> Self
Register one action. May be called many times.
Sourcepub fn register_boxed(self, a: Box<dyn Action>) -> Self
pub fn register_boxed(self, a: Box<dyn Action>) -> Self
Register an already-boxed action. Useful when the concrete type is only known at runtime (e.g. when assembled from a manifest factory).