pub enum RequestCache {
Default,
NoStore,
Reload,
NoCache,
ForceCache,
OnlyIfCached,
}Expand description
Cache mode for requests.
This enum controls how the request interacts with the HTTP cache.
Variants§
Default
Use default cache behavior
NoStore
Don’t use cache, don’t store response
Reload
Bypass cache, always fetch from network
NoCache
Bypass cache but store response
ForceCache
Use cache if possible, don’t validate
OnlyIfCached
Only use cache, fail if not cached
Trait Implementations§
Source§impl Clone for RequestCache
impl Clone for RequestCache
Source§fn clone(&self) -> RequestCache
fn clone(&self) -> RequestCache
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 RequestCache
impl Debug for RequestCache
Source§impl Default for RequestCache
impl Default for RequestCache
Source§impl PartialEq for RequestCache
impl PartialEq for RequestCache
impl Copy for RequestCache
impl Eq for RequestCache
impl StructuralPartialEq for RequestCache
Auto Trait Implementations§
impl Freeze for RequestCache
impl RefUnwindSafe for RequestCache
impl Send for RequestCache
impl Sync for RequestCache
impl Unpin for RequestCache
impl UnwindSafe for RequestCache
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.