pub enum CacheGetResponseResult<Key> {
Miss(Key),
Hit(HeaderMap),
}Expand description
Result of the cache-lookup Service
Either
- calculated cache key if entry not in cache, so that the key can be used to put later on
- HTTP response headers to send along with the HTTP 304 response if entry in cache
Variants§
Trait Implementations§
Source§impl<Key: Clone> Clone for CacheGetResponseResult<Key>
impl<Key: Clone> Clone for CacheGetResponseResult<Key>
Source§fn clone(&self) -> CacheGetResponseResult<Key>
fn clone(&self) -> CacheGetResponseResult<Key>
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 moreAuto Trait Implementations§
impl<Key> Freeze for CacheGetResponseResult<Key>where
Key: Freeze,
impl<Key> RefUnwindSafe for CacheGetResponseResult<Key>where
Key: RefUnwindSafe,
impl<Key> Send for CacheGetResponseResult<Key>where
Key: Send,
impl<Key> Sync for CacheGetResponseResult<Key>where
Key: Sync,
impl<Key> Unpin for CacheGetResponseResult<Key>where
Key: Unpin,
impl<Key> UnwindSafe for CacheGetResponseResult<Key>where
Key: UnwindSafe,
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