pub struct CoordinatorConfig {
pub global_request_budget: usize,
pub weights: Option<[u32; 3]>,
}Expand description
Configuration for the cross-source request coordinator.
Fields§
§global_request_budget: usizeMaximum number of new tile requests that may be issued across all sources in a single frame.
This global cap prevents a sudden camera move from flooding the network with hundreds of queued requests. The budget is split among source classes proportionally to their weights.
Set to 0 to disable coordination (each source uses its own
internal limits). Defaults to 32.
weights: Option<[u32; 3]>Per-source-class priority weight overrides.
If None, the default weights are used (raster=3, vector=2,
terrain=1). The weights are relative – only their ratio
matters.
Trait Implementations§
Source§impl Clone for CoordinatorConfig
impl Clone for CoordinatorConfig
Source§fn clone(&self) -> CoordinatorConfig
fn clone(&self) -> CoordinatorConfig
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 CoordinatorConfig
impl Debug for CoordinatorConfig
Auto Trait Implementations§
impl Freeze for CoordinatorConfig
impl RefUnwindSafe for CoordinatorConfig
impl Send for CoordinatorConfig
impl Sync for CoordinatorConfig
impl Unpin for CoordinatorConfig
impl UnsafeUnpin for CoordinatorConfig
impl UnwindSafe for CoordinatorConfig
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