pub struct Cache();
Implementations§
Source§impl Cache
impl Cache
pub fn instanciate(tmpdir: &Path, props: GcProperties)
pub async fn close()
pub fn lookup_or_create(key: &Url) -> Entry
pub fn create(key: &Url) -> Entry
pub fn replace(key: &Url, entry: &Entry)
pub fn remove(key: &Url)
pub fn get_client() -> Arc<Client>
pub fn new_file() -> Result<File>
pub async fn dump()
pub async fn clear()
Auto Trait Implementations§
impl Freeze for Cache
impl RefUnwindSafe for Cache
impl Send for Cache
impl Sync for Cache
impl Unpin for Cache
impl UnwindSafe for Cache
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