pub struct SeededTurnPlanner { /* private fields */ }Expand description
Plans turns against state it is handed.
Implementations§
Source§impl SeededTurnPlanner
impl SeededTurnPlanner
Sourcepub fn builder() -> SeededTurnPlannerBuilder
pub fn builder() -> SeededTurnPlannerBuilder
Starts a builder.
Sourcepub async fn plan(
&self,
input: TurnInput,
cases: Vec<SeededCase>,
) -> Result<PlannedTurn, OrchestratorError>
pub async fn plan( &self, input: TurnInput, cases: Vec<SeededCase>, ) -> Result<PlannedTurn, OrchestratorError>
Plans input against cases, 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 SeededTurnPlanner
impl !UnwindSafe for SeededTurnPlanner
impl Freeze for SeededTurnPlanner
impl Send for SeededTurnPlanner
impl Sync for SeededTurnPlanner
impl Unpin for SeededTurnPlanner
impl UnsafeUnpin for SeededTurnPlanner
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