pub struct FileSystemCache {
pub cache: HashMap<CacheKey, FileSystemCacheValue>,
/* private fields */
}
Fields§
§cache: HashMap<CacheKey, FileSystemCacheValue>
Trait Implementations§
Source§impl CacheBackend for FileSystemCache
impl CacheBackend for FileSystemCache
Source§fn backend_type(&self) -> &'static str
fn backend_type(&self) -> &'static str
report the type of the cache backend
Source§fn get_random(&self) -> Option<CacheValue>
fn get_random(&self) -> Option<CacheValue>
Get a random image from the cache
Source§fn set(&mut self, key: CacheKey, image: CacheValue) -> Result<(), String>
fn set(&mut self, key: CacheKey, image: CacheValue) -> Result<(), String>
Store an image in the cache with its key Read more
Auto Trait Implementations§
impl Freeze for FileSystemCache
impl RefUnwindSafe for FileSystemCache
impl Send for FileSystemCache
impl Sync for FileSystemCache
impl Unpin for FileSystemCache
impl UnwindSafe for FileSystemCache
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