pub struct StaticPlanner { /* private fields */ }Expand description
A planner that emits a fixed set of Jobs on the first call and Done
thereafter. Use it to seed a Run from a precomputed plan while still going
through the planner interface (so adding real replanning later is a
drop-in swap).
Implementations§
Source§impl StaticPlanner
impl StaticPlanner
pub fn new(jobs: impl IntoIterator<Item = Job>) -> Self
Trait Implementations§
Source§impl Planner for StaticPlanner
impl Planner for StaticPlanner
fn plan<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_goal: &'life1 str,
_succeeded: &'life2 [(JobId, JobResult)],
) -> Pin<Box<dyn Future<Output = Result<PlanDelta, PlannerError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl !Freeze for StaticPlanner
impl Forget for StaticPlanner
impl RefUnwindSafe for StaticPlanner
impl Send for StaticPlanner
impl Sync for StaticPlanner
impl Unpin for StaticPlanner
impl UnsafeUnpin for StaticPlanner
impl UnwindSafe for StaticPlanner
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