MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / directory

Method directory

crates/cache/src/config.rs:382–384  ·  view source on GitHub ↗

Returns path to the cache directory if one is set.

(&self)

Source from the content-addressed store, hash-verified

380
381 /// Returns path to the cache directory if one is set.
382 pub fn directory(&self) -> Option<&PathBuf> {
383 self.directory.as_ref()
384 }
385
386 /// Specify where the cache directory is. Must be an absolute path.
387 pub fn with_directory(&mut self, directory: impl Into<PathBuf>) -> &mut Self {

Callers

nothing calls this directly

Calls 1

as_refMethod · 0.45

Tested by

no test coverage detected