Trait TileWriter

Source
pub trait TileWriter:
    DynClone
    + Send
    + Sync {
    // Required methods
    fn compression(&self) -> Compression;
    fn exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        xyz: &'life1 Xyz,
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn put_tile<'life0, 'life1, 'async_trait>(
        &'life0 self,
        xyz: &'life1 Xyz,
        data: Vec<u8>,
    ) -> Pin<Box<dyn Future<Output = Result<(), TileStoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;

    // Provided methods
    fn put_tile_mut<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        xyz: &'life1 Xyz,
        data: Vec<u8>,
    ) -> Pin<Box<dyn Future<Output = Result<(), TileStoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn put_tiles<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        tiles: &'life1 [(u8, u32, u32, Vec<u8>)],
    ) -> Pin<Box<dyn Future<Output = Result<(), TileStoreError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn finalize(&mut self) -> Result<(), TileStoreError> { ... }
}

Required Methods§

Source

fn compression(&self) -> Compression

Tile storage compression

Source

fn exists<'life0, 'life1, 'async_trait>( &'life0 self, xyz: &'life1 Xyz, ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Check for existing tile Must not be implemented for cases where generating a tile is less expensive than checking

Source

fn put_tile<'life0, 'life1, 'async_trait>( &'life0 self, xyz: &'life1 Xyz, data: Vec<u8>, ) -> Pin<Box<dyn Future<Output = Result<(), TileStoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Write tile into store

Provided Methods§

Source

fn put_tile_mut<'life0, 'life1, 'async_trait>( &'life0 mut self, xyz: &'life1 Xyz, data: Vec<u8>, ) -> Pin<Box<dyn Future<Output = Result<(), TileStoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Write tile into store requiring &mut self

Source

fn put_tiles<'life0, 'life1, 'async_trait>( &'life0 mut self, tiles: &'life1 [(u8, u32, u32, Vec<u8>)], ) -> Pin<Box<dyn Future<Output = Result<(), TileStoreError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Write multiple tiles into store

Source

fn finalize(&mut self) -> Result<(), TileStoreError>

Finalize writing

Implementors§