pub struct PooledRasterTileSourceConfig {
pub url_template: String,
pub headers: Vec<(String, String)>,
pub source_min_zoom: u8,
pub source_max_zoom: u8,
pub max_concurrent: usize,
pub max_cached: usize,
}Expand description
Renderer-agnostic configuration for a pooled HTTP raster tile source.
Fields§
§url_template: StringURL template with {z}, {x}, and {y} placeholders.
headers: Vec<(String, String)>Default request headers applied to every outgoing HTTP request.
source_min_zoom: u8Minimum zoom level supported by the source.
source_max_zoom: u8Maximum zoom level supported by the source.
max_concurrent: usizeMaximum number of concurrent in-flight requests.
max_cached: usizeMaximum retained tile count / visible budget for the layer using this source.
Trait Implementations§
Source§impl Clone for PooledRasterTileSourceConfig
impl Clone for PooledRasterTileSourceConfig
Source§fn clone(&self) -> PooledRasterTileSourceConfig
fn clone(&self) -> PooledRasterTileSourceConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PooledRasterTileSourceConfig
impl Debug for PooledRasterTileSourceConfig
Source§impl PartialEq for PooledRasterTileSourceConfig
impl PartialEq for PooledRasterTileSourceConfig
Source§fn eq(&self, other: &PooledRasterTileSourceConfig) -> bool
fn eq(&self, other: &PooledRasterTileSourceConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PooledRasterTileSourceConfig
impl StructuralPartialEq for PooledRasterTileSourceConfig
Auto Trait Implementations§
impl Freeze for PooledRasterTileSourceConfig
impl RefUnwindSafe for PooledRasterTileSourceConfig
impl Send for PooledRasterTileSourceConfig
impl Sync for PooledRasterTileSourceConfig
impl Unpin for PooledRasterTileSourceConfig
impl UnsafeUnpin for PooledRasterTileSourceConfig
impl UnwindSafe for PooledRasterTileSourceConfig
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