pub struct CacheStorageManager;Expand description
Cache storage manager for managing storage quota and cleanup.
Implementations§
Source§impl CacheStorageManager
impl CacheStorageManager
Sourcepub async fn estimate() -> Result<StorageInfo>
pub async fn estimate() -> Result<StorageInfo>
Estimate storage usage and quota.
Sourcepub async fn is_persistent() -> Result<bool>
pub async fn is_persistent() -> Result<bool>
Check if persistent storage is available.
Sourcepub async fn request_persistent() -> Result<bool>
pub async fn request_persistent() -> Result<bool>
Request persistent storage.
Sourcepub async fn cleanup_old_caches(keep_names: &[String]) -> Result<u64>
pub async fn cleanup_old_caches(keep_names: &[String]) -> Result<u64>
Clean up old caches to free space.
Sourcepub async fn estimate_cache_size(cache_name: &str) -> Result<u64>
pub async fn estimate_cache_size(cache_name: &str) -> Result<u64>
Estimate the size of a specific cache.
Auto Trait Implementations§
impl Freeze for CacheStorageManager
impl RefUnwindSafe for CacheStorageManager
impl Send for CacheStorageManager
impl Sync for CacheStorageManager
impl Unpin for CacheStorageManager
impl UnsafeUnpin for CacheStorageManager
impl UnwindSafe for CacheStorageManager
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