pub struct TurnPlannerBuilder { /* private fields */ }Expand description
Collects everything a TurnPlanner needs.
Implementations§
Source§impl TurnPlannerBuilder
impl TurnPlannerBuilder
Sourcepub fn workflows(self, workflows: WorkflowReadRegistry) -> Self
pub fn workflows(self, workflows: WorkflowReadRegistry) -> Self
Sets the read-only registry.
Sourcepub fn stores(self, stores: ReadOnlyStores) -> Self
pub fn stores(self, stores: ReadOnlyStores) -> Self
Sets the read-only stores.
Sourcepub fn case_directory(self, directory: Arc<dyn CaseDirectory>) -> Self
pub fn case_directory(self, directory: Arc<dyn CaseDirectory>) -> Self
Sets the case directory.
Sourcepub fn understander(self, understander: Arc<dyn TurnUnderstander>) -> Self
pub fn understander(self, understander: Arc<dyn TurnUnderstander>) -> Self
Sets what understands each turn.
Sourcepub fn policy(self, policy: PolicySnapshot) -> Self
pub fn policy(self, policy: PolicySnapshot) -> Self
Sets the policy snapshot.
Sourcepub fn config(self, config: OrchestratorConfig) -> Self
pub fn config(self, config: OrchestratorConfig) -> Self
Sets the configuration.
Sourcepub fn case_id_factory(self, factory: Arc<dyn CaseIdFactory>) -> Self
pub fn case_id_factory(self, factory: Arc<dyn CaseIdFactory>) -> Self
Sets the factory of new case identifiers.
Sourcepub fn build(self) -> Result<TurnPlanner, BuildError>
pub fn build(self) -> Result<TurnPlanner, BuildError>
Builds the planner.
§Errors
crate::orchestrator::BuildError for a missing part or an invalid configuration.
Trait Implementations§
Source§impl Debug for TurnPlannerBuilder
impl Debug for TurnPlannerBuilder
Auto Trait Implementations§
impl !RefUnwindSafe for TurnPlannerBuilder
impl !UnwindSafe for TurnPlannerBuilder
impl Freeze for TurnPlannerBuilder
impl Send for TurnPlannerBuilder
impl Sync for TurnPlannerBuilder
impl Unpin for TurnPlannerBuilder
impl UnsafeUnpin for TurnPlannerBuilder
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