pub struct DualCacheStub<K, V> { /* private fields */ }Expand description
A zero-overhead, completely compiled-away stub implementation of the DualCache API.
All methods are marked with #[inline(always)] and evaluate to no-ops.
Suitable for ultra-constrained bare-metal environments where caching is compiled out.
Implementations§
Source§impl<K, V> DualCacheStub<K, V>
impl<K, V> DualCacheStub<K, V>
Sourcepub fn new_headless(_config: Config) -> (Self, ())
pub fn new_headless(_config: Config) -> (Self, ())
Exposes API parity with DualCacheFF::new_headless
Trait Implementations§
Auto Trait Implementations§
impl<K, V> Freeze for DualCacheStub<K, V>
impl<K, V> RefUnwindSafe for DualCacheStub<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for DualCacheStub<K, V>
impl<K, V> Sync for DualCacheStub<K, V>
impl<K, V> Unpin for DualCacheStub<K, V>
impl<K, V> UnsafeUnpin for DualCacheStub<K, V>
impl<K, V> UnwindSafe for DualCacheStub<K, V>where
K: UnwindSafe,
V: UnwindSafe,
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