pub struct CacheManager;Implementations§
Source§impl CacheManager
impl CacheManager
pub fn ensure_cache_dir() -> Result<PathBuf>
pub fn get_cached_spec(url: &str) -> Result<Option<String>>
pub fn get_cached_spec_with_name( url: &str, spec_name: Option<&str>, ) -> Result<Option<String>>
pub fn cache_spec(url: &str, content: &str) -> Result<()>
pub fn cache_spec_with_name( url: &str, content: &str, spec_name: Option<&str>, ) -> Result<()>
pub fn clear_cache() -> Result<()>
Auto Trait Implementations§
impl Freeze for CacheManager
impl RefUnwindSafe for CacheManager
impl Send for CacheManager
impl Sync for CacheManager
impl Unpin for CacheManager
impl UnwindSafe for CacheManager
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