pub struct CacheBuilderInstance { /* private fields */ }Expand description
Represents a particular instance of a CacheBuilder. It includes extra metadata of the
policy, required to successfully work in all scenarios involving multiple policies.
Implementations§
Source§impl CacheBuilderInstance
impl CacheBuilderInstance
Sourcepub fn max_entries(self, max_entries: usize) -> Self
pub fn max_entries(self, max_entries: usize) -> Self
Sets the maximum number of entries available for the cache.
Indicates that the cache should not be isolated to the policy. The state will be shared across different policy instances and different policies that use the same cache ID.
Auto Trait Implementations§
impl Freeze for CacheBuilderInstance
impl !RefUnwindSafe for CacheBuilderInstance
impl !Send for CacheBuilderInstance
impl !Sync for CacheBuilderInstance
impl Unpin for CacheBuilderInstance
impl !UnwindSafe for CacheBuilderInstance
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