pub struct TileCacheConfig {
pub max_memory_tiles: usize,
pub max_disk_bytes: u64,
pub disk_cache_dir: Option<PathBuf>,
pub compress: bool,
pub ttl_seconds: u64,
}Expand description
Configuration for tile cache.
Fields§
§max_memory_tiles: usizeMaximum number of tiles in memory cache
max_disk_bytes: u64Maximum size of disk cache in bytes
disk_cache_dir: Option<PathBuf>Directory for disk cache
compress: boolEnable compression for disk cache
ttl_seconds: u64TTL for cached tiles in seconds
Trait Implementations§
Source§impl Clone for TileCacheConfig
impl Clone for TileCacheConfig
Source§fn clone(&self) -> TileCacheConfig
fn clone(&self) -> TileCacheConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TileCacheConfig
impl Debug for TileCacheConfig
Auto Trait Implementations§
impl Freeze for TileCacheConfig
impl RefUnwindSafe for TileCacheConfig
impl Send for TileCacheConfig
impl Sync for TileCacheConfig
impl Unpin for TileCacheConfig
impl UnsafeUnpin for TileCacheConfig
impl UnwindSafe for TileCacheConfig
Blanket Implementations§
impl<T> Allocation for T
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