pub struct TmsProtocol { /* private fields */ }Expand description
TMS (Tile Map Service) protocol implementation.
Implementations§
Trait Implementations§
Source§impl TileProtocol for TmsProtocol
impl TileProtocol for TmsProtocol
Source§fn get_tile<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 TileRequest,
) -> Pin<Box<dyn Future<Output = Result<TileResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_tile<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 TileRequest,
) -> Pin<Box<dyn Future<Output = Result<TileResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get a tile.
Source§fn has_tile<'life0, 'life1, 'async_trait>(
&'life0 self,
coord: &'life1 TileCoordinate,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn has_tile<'life0, 'life1, 'async_trait>(
&'life0 self,
coord: &'life1 TileCoordinate,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if a tile exists.
Source§fn get_tile_metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
coord: &'life1 TileCoordinate,
) -> Pin<Box<dyn Future<Output = Result<TileMetadata>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_tile_metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
coord: &'life1 TileCoordinate,
) -> Pin<Box<dyn Future<Output = Result<TileMetadata>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get tile metadata.
Source§fn zoom_levels(&self) -> (u8, u8)
fn zoom_levels(&self) -> (u8, u8)
Get the supported zoom levels.
Auto Trait Implementations§
impl Freeze for TmsProtocol
impl RefUnwindSafe for TmsProtocol
impl Send for TmsProtocol
impl Sync for TmsProtocol
impl Unpin for TmsProtocol
impl UnsafeUnpin for TmsProtocol
impl UnwindSafe for TmsProtocol
Blanket Implementations§
impl<T> Allocation for T
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