pub struct MapBoxTourPlanner { /* private fields */ }Expand description
Implementation of TourPlanner for MapBox Optimization API v1.
Implementations§
Source§impl MapBoxTourPlanner
impl MapBoxTourPlanner
pub fn new(client: Arc<MapBoxClient>) -> Self
pub fn with_base_url(client: Arc<MapBoxClient>, base_url: String) -> Self
Trait Implementations§
Source§impl TourPlanner for MapBoxTourPlanner
impl TourPlanner for MapBoxTourPlanner
fn optimize_tour<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
stops: &'life1 [Coordinate],
options: &'life2 TourOptions,
) -> Pin<Box<dyn Future<Output = EveryMapResult<TourResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for MapBoxTourPlanner
impl !UnwindSafe for MapBoxTourPlanner
impl Freeze for MapBoxTourPlanner
impl Send for MapBoxTourPlanner
impl Sync for MapBoxTourPlanner
impl Unpin for MapBoxTourPlanner
impl UnsafeUnpin for MapBoxTourPlanner
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