pub struct TurnPlanner { /* private fields */ }Expand description
Plans turns against live, read-only stores.
Implementations§
Source§impl TurnPlanner
impl TurnPlanner
Sourcepub fn builder() -> TurnPlannerBuilder
pub fn builder() -> TurnPlannerBuilder
Starts a builder.
Sourcepub fn seeded(&self) -> SeededTurnPlanner
pub fn seeded(&self) -> SeededTurnPlanner
The seeded planner over the same definitions and parts.
Sourcepub async fn plan(
&self,
input: TurnInput,
) -> Result<PlannedTurn, OrchestratorError>
pub async fn plan( &self, input: TurnInput, ) -> Result<PlannedTurn, OrchestratorError>
Plans input against the stores, stopping before the first effect.
§Errors
Whatever the same steps of a real turn would fail with.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TurnPlanner
impl !UnwindSafe for TurnPlanner
impl Freeze for TurnPlanner
impl Send for TurnPlanner
impl Sync for TurnPlanner
impl Unpin for TurnPlanner
impl UnsafeUnpin for TurnPlanner
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