pub enum DiskCacheRule {
Stale,
MaxAge(u64),
Immutable,
}Expand description
応答ヘッダから決めた、RAMDisk キャッシュの保存の決まり
Variants§
Stale
no-store・no-cache・max-age=0・Vary: *。すぐ古い物として扱う
MaxAge(u64)
max-age=N(秒)
Immutable
immutable。起動中ずっと有効
Trait Implementations§
Source§impl Clone for DiskCacheRule
impl Clone for DiskCacheRule
impl Copy for DiskCacheRule
Source§impl Debug for DiskCacheRule
impl Debug for DiskCacheRule
impl Eq for DiskCacheRule
Source§impl PartialEq for DiskCacheRule
impl PartialEq for DiskCacheRule
impl StructuralPartialEq for DiskCacheRule
Auto Trait Implementations§
impl Freeze for DiskCacheRule
impl RefUnwindSafe for DiskCacheRule
impl Send for DiskCacheRule
impl Sync for DiskCacheRule
impl Unpin for DiskCacheRule
impl UnsafeUnpin for DiskCacheRule
impl UnwindSafe for DiskCacheRule
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.