pub struct CacheKeyVariant {
pub at: usize,
pub len: usize,
pub alternatives: Arc<Vec<Vec<String>>>,
}Expand description
Components of the cache key that stand for something this request said - the coding it accepts, the image formats it takes - and that another request for the same url has others in the place of.
A PURGE is such another request: it names the url and says nothing of
codings or formats. What it has to remove is the entry under every one
of the alternatives, not only under its own.
Fields§
§at: usizeWhere in keys its components start.
len: usizeHow many of them there are for this request, which may be none.
alternatives: Arc<Vec<Vec<String>>>Every list of components that can stand here, the empty one included.
Trait Implementations§
Source§impl Clone for CacheKeyVariant
impl Clone for CacheKeyVariant
Auto Trait Implementations§
impl Freeze for CacheKeyVariant
impl RefUnwindSafe for CacheKeyVariant
impl Send for CacheKeyVariant
impl Sync for CacheKeyVariant
impl Unpin for CacheKeyVariant
impl UnsafeUnpin for CacheKeyVariant
impl UnwindSafe for CacheKeyVariant
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