pub enum CachingBehavior {
Disabled,
BestEffort,
}Expand description
Defines how the HTTP client should handle response caching.
Variants§
Disabled
Caching is completely disabled.
BestEffort
Best effort caching behavior based on the backend capabilities.
Trait Implementations§
Source§impl Clone for CachingBehavior
impl Clone for CachingBehavior
Source§fn clone(&self) -> CachingBehavior
fn clone(&self) -> CachingBehavior
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CachingBehavior
Source§impl Debug for CachingBehavior
impl Debug for CachingBehavior
Source§impl Default for CachingBehavior
impl Default for CachingBehavior
Source§fn default() -> CachingBehavior
fn default() -> CachingBehavior
Returns the “default value” for a type. Read more
impl Eq for CachingBehavior
Source§impl PartialEq for CachingBehavior
impl PartialEq for CachingBehavior
Source§fn eq(&self, other: &CachingBehavior) -> bool
fn eq(&self, other: &CachingBehavior) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CachingBehavior
Auto Trait Implementations§
impl Freeze for CachingBehavior
impl RefUnwindSafe for CachingBehavior
impl Send for CachingBehavior
impl Sync for CachingBehavior
impl Unpin for CachingBehavior
impl UnsafeUnpin for CachingBehavior
impl UnwindSafe for CachingBehavior
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