pub struct QuantizedMeshSource { /* private fields */ }Expand description
HTTP-backed quantized-mesh elevation source.
Implementations§
Source§impl QuantizedMeshSource
impl QuantizedMeshSource
Sourcepub fn new(
url_template: impl Into<String>,
client: Box<dyn HttpClient>,
grid_size: u32,
) -> Self
pub fn new( url_template: impl Into<String>, client: Box<dyn HttpClient>, grid_size: u32, ) -> Self
Create a quantized-mesh source.
grid_size is the output elevation grid resolution per edge
(e.g. 65 for typical terrain tiles).
Sourcepub fn with_max_concurrent_requests(self, max_concurrent: usize) -> Self
pub fn with_max_concurrent_requests(self, max_concurrent: usize) -> Self
Override the maximum number of concurrent quantized-mesh HTTP requests.
Trait Implementations§
Source§impl Debug for QuantizedMeshSource
impl Debug for QuantizedMeshSource
Source§impl ElevationSource for QuantizedMeshSource
impl ElevationSource for QuantizedMeshSource
Source§fn poll(&self) -> Vec<(TileId, Result<ElevationGrid, TerrainError>)>
fn poll(&self) -> Vec<(TileId, Result<ElevationGrid, TerrainError>)>
Poll for completed elevation fetches.
Source§fn diagnostics(&self) -> Option<ElevationSourceDiagnostics>
fn diagnostics(&self) -> Option<ElevationSourceDiagnostics>
Optional source diagnostics for debugging terrain fetch/decode behavior.
Auto Trait Implementations§
impl !Freeze for QuantizedMeshSource
impl !RefUnwindSafe for QuantizedMeshSource
impl Send for QuantizedMeshSource
impl Sync for QuantizedMeshSource
impl Unpin for QuantizedMeshSource
impl UnsafeUnpin for QuantizedMeshSource
impl !UnwindSafe for QuantizedMeshSource
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