pub enum CachePolicy {
Default,
Reload,
PreferCache,
}Expand description
How a request may use the platform’s cache.
Variants§
Default
Follow the response’s cache headers.
Reload
Always load from the network, ignoring cached data.
PreferCache
Use cached data when present, whatever its age; load otherwise.
Trait Implementations§
Source§impl Clone for CachePolicy
impl Clone for CachePolicy
impl Copy for CachePolicy
Source§impl Debug for CachePolicy
impl Debug for CachePolicy
Source§impl Default for CachePolicy
impl Default for CachePolicy
impl Eq for CachePolicy
Source§impl PartialEq for CachePolicy
impl PartialEq for CachePolicy
impl StructuralPartialEq for CachePolicy
Auto Trait Implementations§
impl Forget for CachePolicy
impl Freeze for CachePolicy
impl Move for CachePolicy
impl RefUnwindSafe for CachePolicy
impl Send for CachePolicy
impl Sync for CachePolicy
impl Unpin for CachePolicy
impl UnsafeUnpin for CachePolicy
impl UnwindSafe for CachePolicy
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