pub enum CacheKey<'a> {
Url(String),
Request(&'a Request),
}
Expand description
The String
or Request
object used as the lookup key. String
s are interpreted as the URL for a new Request
object.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CacheKey<'a>
impl<'a> RefUnwindSafe for CacheKey<'a>
impl<'a> Send for CacheKey<'a>
impl<'a> Sync for CacheKey<'a>
impl<'a> Unpin for CacheKey<'a>
impl<'a> UnwindSafe for CacheKey<'a>
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