pub struct XyzProtocol { /* private fields */ }Expand description
XYZ tile protocol implementation.
Implementations§
Trait Implementations§
Source§impl TileProtocol for XyzProtocol
impl TileProtocol for XyzProtocol
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 XyzProtocol
impl RefUnwindSafe for XyzProtocol
impl Send for XyzProtocol
impl Sync for XyzProtocol
impl Unpin for XyzProtocol
impl UnsafeUnpin for XyzProtocol
impl UnwindSafe for XyzProtocol
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