pub struct TileCacheConfig {
pub max_memory_bytes: usize,
pub disk_cache_dir: Option<PathBuf>,
pub ttl: Duration,
pub enable_stats: bool,
pub compression: bool,
}Expand description
Tile cache configuration
Fields§
§max_memory_bytes: usizeMaximum memory size in bytes
disk_cache_dir: Option<PathBuf>Optional disk cache directory
ttl: DurationTime-to-live for cached entries
enable_stats: boolEnable statistics tracking
compression: boolCompress cached data
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 · 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§
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