pub struct DummyCacheMgr { /* private fields */ }Expand description
A dummy implementation of BlobCacheMgr, simply reporting each chunk as cached or not cached according to configuration.
The DummyCacheMgr is a dummy implementation of the BlobCacheMgr, which doesn’t really cache
data. Instead it just reads data from the backend, uncompressed it if needed and then pass on
the data to the clients.
Implementations§
Source§impl DummyCacheMgr
impl DummyCacheMgr
Sourcepub fn new(
config: &CacheConfigV2,
backend: Arc<dyn BlobBackend>,
cached: bool,
) -> Result<DummyCacheMgr>
pub fn new( config: &CacheConfigV2, backend: Arc<dyn BlobBackend>, cached: bool, ) -> Result<DummyCacheMgr>
Create a new instance of DummyCacheMgr.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DummyCacheMgr
impl !RefUnwindSafe for DummyCacheMgr
impl Send for DummyCacheMgr
impl Sync for DummyCacheMgr
impl Unpin for DummyCacheMgr
impl UnsafeUnpin for DummyCacheMgr
impl !UnwindSafe for DummyCacheMgr
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