pub struct CacheAdapter { /* private fields */ }Implementations§
Source§impl CacheAdapter
impl CacheAdapter
pub fn new( usage: impl Fn() -> CacheUsage + Send + Sync + 'static, trim: impl Fn(TrimRequest) -> TrimResult + Send + Sync + 'static, ) -> Self
pub fn managed( usage: impl Fn() -> CacheUsage + Send + Sync + 'static, trim: impl Fn(TrimRequest) -> TrimResult + Send + Sync + 'static, set_budget: impl Fn(usize) + Send + Sync + 'static, ) -> Self
Trait Implementations§
Source§impl Clone for CacheAdapter
impl Clone for CacheAdapter
Source§fn clone(&self) -> CacheAdapter
fn clone(&self) -> CacheAdapter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for CacheAdapter
impl !UnwindSafe for CacheAdapter
impl Freeze for CacheAdapter
impl Send for CacheAdapter
impl Sync for CacheAdapter
impl Unpin for CacheAdapter
impl UnsafeUnpin for CacheAdapter
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