pub struct MountOptions {
pub blob_cache: Option<Arc<BlobCachePool>>,
}Expand description
Knobs handed to ContentAddressedMount::with_options. The
default-constructed value is what ContentAddressedMount::new
uses internally; build one explicitly when the caller wants to
share a blob cache across mounts or tune the cache cap.
Fields§
§blob_cache: Option<Arc<BlobCachePool>>Shared blob cache. None means “give me a fresh pool with
the default cap”; clone an existing Arc<BlobCachePool> here
to share warm state with sibling mounts. The daemon pattern
is to construct one pool at startup (sized from physical
RAM) and hand the same Arc to every mount it spawns.
Trait Implementations§
Source§impl Clone for MountOptions
impl Clone for MountOptions
Source§fn clone(&self) -> MountOptions
fn clone(&self) -> MountOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for MountOptions
impl Default for MountOptions
Source§fn default() -> MountOptions
fn default() -> MountOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MountOptions
impl RefUnwindSafe for MountOptions
impl Send for MountOptions
impl Sync for MountOptions
impl Unpin for MountOptions
impl UnsafeUnpin for MountOptions
impl UnwindSafe for MountOptions
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