Trait pmtiles::AsyncBackend
source · [−]pub trait AsyncBackend {
fn read_bytes<'life0, 'life1, 'async_trait>(
&'life0 self,
dst: &'life1 mut [u8],
offset: usize
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn read_header_bytes<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<[u8; 127], Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: Sync + 'async_trait,
{ ... }
}