pub enum ClearDirective {
Cache,
Cookies,
Storage,
ExecutionContexts,
}
Expand description
An HTTP Clear-Site-Data
directive.
Variants§
Cache
Indicates that the server wishes to remove locally cached data (i.e. the browser cache, see HTTP caching) for the origin of the response URL. Depending on the browser, this might also clear out things like pre-rendered pages, script caches, WebGL shader caches, or address bar suggestions.
Cookies
Indicates that the server wishes to remove all cookies for the origin of the response URL. HTTP authentication credentials are also cleared out. This affects the entire registered domain, including subdomains. So https://example.com as well as https://stage.example.com, will have cookies cleared.
Storage
Indicates that the server wishes to remove all DOM storage for the origin of the response URL.
ExecutionContexts
Indicates that the server wishes to reload all browsing contexts for the origin of the response (Location.reload).
Implementations§
Trait Implementations§
Source§impl Clone for ClearDirective
impl Clone for ClearDirective
Source§fn clone(&self) -> ClearDirective
fn clone(&self) -> ClearDirective
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ClearDirective
impl Debug for ClearDirective
Source§impl Display for ClearDirective
impl Display for ClearDirective
Source§impl FromStr for ClearDirective
impl FromStr for ClearDirective
Source§impl Hash for ClearDirective
impl Hash for ClearDirective
Source§impl PartialEq for ClearDirective
impl PartialEq for ClearDirective
impl Copy for ClearDirective
impl Eq for ClearDirective
impl StructuralPartialEq for ClearDirective
Auto Trait Implementations§
impl Freeze for ClearDirective
impl RefUnwindSafe for ClearDirective
impl Send for ClearDirective
impl Sync for ClearDirective
impl Unpin for ClearDirective
impl UnwindSafe for ClearDirective
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.