#[non_exhaustive]pub enum ClearSiteDataDirective {
All,
Cache,
ClientHints,
Cookies,
Storage,
ExecutionContexts,
}
Expand description
Directives contained in a ClearSiteData
header.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
All
Indicates that the server wishes to clear all types of data for the origin of the response.
If more data types are added in future versions of this header, they will also be covered by it.
Cache
Indicates that the server wishes to remove locally cached data 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.
ClientHints
Indicates that the server wishes to remove all client hints (requested via Accept-CH) stored for the origin of the response URL.
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.
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.
Trait Implementations§
Source§impl Clone for ClearSiteDataDirective
impl Clone for ClearSiteDataDirective
Source§fn clone(&self) -> ClearSiteDataDirective
fn clone(&self) -> ClearSiteDataDirective
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ClearSiteDataDirective
impl Debug for ClearSiteDataDirective
Source§impl Display for ClearSiteDataDirective
impl Display for ClearSiteDataDirective
Source§impl FromStr for ClearSiteDataDirective
impl FromStr for ClearSiteDataDirective
Source§impl PartialEq for ClearSiteDataDirective
impl PartialEq for ClearSiteDataDirective
impl StructuralPartialEq for ClearSiteDataDirective
Auto Trait Implementations§
impl Freeze for ClearSiteDataDirective
impl RefUnwindSafe for ClearSiteDataDirective
impl Send for ClearSiteDataDirective
impl Sync for ClearSiteDataDirective
impl Unpin for ClearSiteDataDirective
impl UnwindSafe for ClearSiteDataDirective
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more