pub struct BlockCacheHandle { /* private fields */ }Expand description
Usage adapter for alopex-core’s block cache.
alopex-core 0.3 does not expose a public BlockCache type. This adapter is intentionally limited to the accounting/eviction contract and can wrap a concrete core cache when that API becomes available without changing the Chirps wire or persistence formats.
Implementations§
Source§impl BlockCacheHandle
impl BlockCacheHandle
pub fn new(capacity: usize) -> Self
pub fn set_capacity(&self, capacity: usize)
pub fn capacity(&self) -> usize
pub fn set_used_bytes(&self, bytes: usize)
pub fn used_bytes(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for BlockCacheHandle
impl RefUnwindSafe for BlockCacheHandle
impl Send for BlockCacheHandle
impl Sync for BlockCacheHandle
impl Unpin for BlockCacheHandle
impl UnsafeUnpin for BlockCacheHandle
impl UnwindSafe for BlockCacheHandle
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