pub struct PathPlanner { /* private fields */ }Expand description
Bounded FIFO planner. A ready result owns the scratch route until acknowledge; polling never discards it. Agent IDs/generations belong to the host.
Implementations§
Source§impl PathPlanner
impl PathPlanner
pub fn new( cells: usize, requests: usize, ) -> Result<PathPlanner, NavigationError>
pub fn request(&mut self, request: PathRequest) -> RequestStatus
pub fn step(&mut self, grid: &Grid, budget: &mut WorkBudget) -> SearchProgress
pub fn result(&self) -> Option<(PathRequest, Result<&[Cell], NavigationError>)>
pub fn acknowledge(&mut self)
pub fn cancel(&mut self, agent: u64)
pub fn clear(&mut self)
pub fn dropped(&self) -> u64
pub fn pending(&self) -> usize
Auto Trait Implementations§
impl Freeze for PathPlanner
impl RefUnwindSafe for PathPlanner
impl Send for PathPlanner
impl Sync for PathPlanner
impl Unpin for PathPlanner
impl UnwindSafe for PathPlanner
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