pub struct CacheMount {
pub tool_match: String,
pub container_path: String,
pub host_path: String,
}Expand description
A writable cache directory bound into the container at runtime.
Used to persist tool scratch state (model weights, downloaded indices, etc.) across runs, and to satisfy tools that write inside the image, which apptainer’s read-only SIF would otherwise reject.
[[cache]]
match = "*" # tool id, or "*" for all tools
container_path = "/cache"
host_path = "~/.cache/bv/{tool}" # `{tool}` is replaced with the tool idFields§
§tool_match: StringTool id this cache applies to. "*" matches every tool.
container_path: String§host_path: StringTrait Implementations§
Source§impl Clone for CacheMount
impl Clone for CacheMount
Source§fn clone(&self) -> CacheMount
fn clone(&self) -> CacheMount
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 moreSource§impl Debug for CacheMount
impl Debug for CacheMount
Source§impl<'de> Deserialize<'de> for CacheMount
impl<'de> Deserialize<'de> for CacheMount
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CacheMount
impl RefUnwindSafe for CacheMount
impl Send for CacheMount
impl Sync for CacheMount
impl Unpin for CacheMount
impl UnsafeUnpin for CacheMount
impl UnwindSafe for CacheMount
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