pub struct ResponseCache {
pub config: ResponseCacheConfig,
/* private fields */
}Expand description
An LRU-style response cache (simplified: evicts oldest entry).
Fields§
§config: ResponseCacheConfigImplementations§
Source§impl ResponseCache
impl ResponseCache
Sourcepub fn new(config: ResponseCacheConfig) -> Self
pub fn new(config: ResponseCacheConfig) -> Self
Creates a new cache with default config.
Auto Trait Implementations§
impl Freeze for ResponseCache
impl RefUnwindSafe for ResponseCache
impl Send for ResponseCache
impl Sync for ResponseCache
impl Unpin for ResponseCache
impl UnsafeUnpin for ResponseCache
impl UnwindSafe for ResponseCache
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