pub struct MvtDecodeOutput {
pub tile: TileId,
pub result: Result<VectorTileData, TileError>,
pub freshness: TileFreshness,
}Expand description
Output from an async MVT decode task.
Produced by DataTaskPool::spawn_decode on a background thread and
consumed by [AsyncDataPipeline::poll_decodes] to promote raw vector
payloads in the tile cache to fully decoded [TileData::Vector] data.
Fields§
§tile: TileIdThe tile that was decoded.
result: Result<VectorTileData, TileError>Decode result – either decoded vector data or an error.
freshness: TileFreshnessFreshness metadata from the original HTTP response, carried through so that the promoted cache entry retains correct TTL information.
Auto Trait Implementations§
impl Freeze for MvtDecodeOutput
impl RefUnwindSafe for MvtDecodeOutput
impl Send for MvtDecodeOutput
impl Sync for MvtDecodeOutput
impl Unpin for MvtDecodeOutput
impl UnsafeUnpin for MvtDecodeOutput
impl UnwindSafe for MvtDecodeOutput
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