pub struct MapBoxMapImageProvider { /* private fields */ }Expand description
Implementation of MapImageProvider for MapBox Static Images API.
Implementations§
Source§impl MapBoxMapImageProvider
impl MapBoxMapImageProvider
pub fn new(client: Arc<MapBoxClient>) -> Self
pub fn with_base_url(client: Arc<MapBoxClient>, base_url: String) -> Self
Trait Implementations§
Source§impl MapImageProvider for MapBoxMapImageProvider
impl MapImageProvider for MapBoxMapImageProvider
fn get_image<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
center: &'life1 Coordinate,
zoom: u32,
size: (u32, u32),
options: &'life2 ImageOptions,
) -> Pin<Box<dyn Future<Output = EveryMapResult<ImageResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for MapBoxMapImageProvider
impl !UnwindSafe for MapBoxMapImageProvider
impl Freeze for MapBoxMapImageProvider
impl Send for MapBoxMapImageProvider
impl Sync for MapBoxMapImageProvider
impl Unpin for MapBoxMapImageProvider
impl UnsafeUnpin for MapBoxMapImageProvider
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