Returns path to the cache directory if one is set.
(&self)
| 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 { |