pub struct SourceCommon {
pub prefetch_zoom_delta: Option<u8>,
pub max_overscale_factor: Option<u8>,
pub minimum_tile_update_interval: Duration,
pub volatile: bool,
}Expand description
The members every source has, which tune how its tiles load.
Fields§
§prefetch_zoom_delta: Option<u8>How many zoom levels below the ideal ones to load tiles of first;
None uses the map’s.
max_overscale_factor: Option<u8>How many zoom levels a parent tile may stand in for its children
while they load; None doesn’t limit it.
minimum_tile_update_interval: DurationHow long a tile waits before it reloads after its data expires.
volatile: boolWhether the source’s tiles stay out of the offline cache.
Trait Implementations§
Source§impl Clone for SourceCommon
impl Clone for SourceCommon
impl Copy for SourceCommon
Source§impl Debug for SourceCommon
impl Debug for SourceCommon
Source§impl Default for SourceCommon
impl Default for SourceCommon
impl Eq for SourceCommon
Source§impl PartialEq for SourceCommon
impl PartialEq for SourceCommon
impl StructuralPartialEq for SourceCommon
Auto Trait Implementations§
impl Forget for SourceCommon
impl Freeze for SourceCommon
impl Move for SourceCommon
impl RefUnwindSafe for SourceCommon
impl Send for SourceCommon
impl Sync for SourceCommon
impl Unpin for SourceCommon
impl UnsafeUnpin for SourceCommon
impl UnwindSafe for SourceCommon
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more