#[non_exhaustive]pub enum CacheResponse {
Fresh,
NeedsValidation,
Stale,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for CacheResponse
impl Clone for CacheResponse
Source§fn clone(&self) -> CacheResponse
fn clone(&self) -> CacheResponse
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 CacheResponse
impl Debug for CacheResponse
Source§impl Display for CacheResponse
impl Display for CacheResponse
Source§impl<'a> FromValue<'a> for CacheResponse
impl<'a> FromValue<'a> for CacheResponse
Source§type Checker = GenericValueTypeChecker<CacheResponse>
type Checker = GenericValueTypeChecker<CacheResponse>
Value type checker.
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moreSource§impl Hash for CacheResponse
impl Hash for CacheResponse
Source§impl Ord for CacheResponse
impl Ord for CacheResponse
Source§fn cmp(&self, other: &CacheResponse) -> Ordering
fn cmp(&self, other: &CacheResponse) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CacheResponse
impl PartialEq for CacheResponse
Source§impl PartialOrd for CacheResponse
impl PartialOrd for CacheResponse
Source§impl StaticType for CacheResponse
impl StaticType for CacheResponse
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.Source§impl ToValue for CacheResponse
impl ToValue for CacheResponse
Source§impl ValueType for CacheResponse
impl ValueType for CacheResponse
Source§type Type = CacheResponse
type Type = CacheResponse
Type to get the
Type
from. Read moreimpl Copy for CacheResponse
impl Eq for CacheResponse
impl StructuralPartialEq for CacheResponse
Auto Trait Implementations§
impl Freeze for CacheResponse
impl RefUnwindSafe for CacheResponse
impl Send for CacheResponse
impl Sync for CacheResponse
impl Unpin for CacheResponse
impl UnwindSafe for CacheResponse
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<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.