pub struct TileCache { /* private fields */ }Expand description
Multi-level tile cache
Implementations§
Source§impl TileCache
impl TileCache
Sourcepub fn new(config: TileCacheConfig) -> Self
pub fn new(config: TileCacheConfig) -> Self
Create a new tile cache
Sourcepub fn clear(&self) -> CacheResult<()>
pub fn clear(&self) -> CacheResult<()>
Clear all cached entries
Sourcepub fn stats(&self) -> CacheStats
pub fn stats(&self) -> CacheStats
Get cache statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TileCache
impl RefUnwindSafe for TileCache
impl Send for TileCache
impl Sync for TileCache
impl Unpin for TileCache
impl UnsafeUnpin for TileCache
impl UnwindSafe for TileCache
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