pub struct FileBasedCache { /* private fields */ }Available on crate feature
httpcache only.Expand description
A file based cache.
Trait Implementations§
Source§impl Clone for FileBasedCache
impl Clone for FileBasedCache
Source§fn clone(&self) -> FileBasedCache
fn clone(&self) -> FileBasedCache
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 FileBasedCache
impl Debug for FileBasedCache
Source§impl HttpCache for FileBasedCache
impl HttpCache for FileBasedCache
fn cache_response( &self, uri: &str, body: &[u8], etag: &[u8], next_link: &Option<String>, ) -> Result<(), ClientError>
fn lookup_etag(&self, uri: &str) -> Result<String, ClientError>
fn lookup_body(&self, uri: &str) -> Result<String, ClientError>
fn lookup_next_link(&self, uri: &str) -> Result<Option<String>, ClientError>
Auto Trait Implementations§
impl Freeze for FileBasedCache
impl RefUnwindSafe for FileBasedCache
impl Send for FileBasedCache
impl Sync for FileBasedCache
impl Unpin for FileBasedCache
impl UnwindSafe for FileBasedCache
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