pub struct MapBoxRouter { /* private fields */ }Expand description
Implementation of Router for MapBox Directions API v5.
Implementations§
Source§impl MapBoxRouter
impl MapBoxRouter
pub fn new(client: Arc<MapBoxClient>) -> Self
pub fn with_base_url(client: Arc<MapBoxClient>, base_url: String) -> Self
Trait Implementations§
Source§impl MapBoxRouterExt for MapBoxRouter
impl MapBoxRouterExt for MapBoxRouter
Source§fn route_with_profile<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
coordinates: &'life1 [Coordinate],
profile: &'life2 str,
alternatives: Option<u32>,
) -> Pin<Box<dyn Future<Output = EveryMapResult<MapBoxRouteResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn route_with_profile<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
coordinates: &'life1 [Coordinate],
profile: &'life2 str,
alternatives: Option<u32>,
) -> Pin<Box<dyn Future<Output = EveryMapResult<MapBoxRouteResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Get a route with specific profile and options not in the core trait.
Source§impl Router for MapBoxRouter
impl Router for MapBoxRouter
fn calculate_route<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
start: &'life1 Coordinate,
end: &'life2 Coordinate,
options: &'life3 RouteOptions,
) -> Pin<Box<dyn Future<Output = EveryMapResult<RouteResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for MapBoxRouter
impl !UnwindSafe for MapBoxRouter
impl Freeze for MapBoxRouter
impl Send for MapBoxRouter
impl Sync for MapBoxRouter
impl Unpin for MapBoxRouter
impl UnsafeUnpin for MapBoxRouter
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