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 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).
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).
Sourcepub fn build(self) -> Result<Orchestrator, BuilderError>
pub fn build(self) -> Result<Orchestrator, BuilderError>
Auto Trait Implementations§
impl !RefUnwindSafe for Builder
impl !UnwindSafe for Builder
impl Freeze for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnsafeUnpin for Builder
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