pub struct FsCacheMgr { /* private fields */ }Expand description
An implementation of BlobCacheMgr to improve performance by caching uncompressed blob with Linux fscache subsystem.
Implementations§
Source§impl FsCacheMgr
impl FsCacheMgr
Sourcepub fn new(
config: &CacheConfigV2,
backend: Arc<dyn BlobBackend>,
runtime: Arc<Runtime>,
id: &str,
user_io_batch_size: u32,
) -> Result<FsCacheMgr>
pub fn new( config: &CacheConfigV2, backend: Arc<dyn BlobBackend>, runtime: Arc<Runtime>, id: &str, user_io_batch_size: u32, ) -> Result<FsCacheMgr>
Create a new instance of FileCacheMgr.
Trait Implementations§
Source§impl Clone for FsCacheMgr
impl Clone for FsCacheMgr
Source§fn clone(&self) -> FsCacheMgr
fn clone(&self) -> FsCacheMgr
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for FsCacheMgr
impl !RefUnwindSafe for FsCacheMgr
impl Send for FsCacheMgr
impl Sync for FsCacheMgr
impl Unpin for FsCacheMgr
impl UnsafeUnpin for FsCacheMgr
impl !UnwindSafe for FsCacheMgr
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