Enum ajars_surf::surf::http::cache::ClearDirective
[−]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
impl ClearDirective
impl ClearDirective
Trait Implementations
impl Clone for ClearDirective
impl Clone for ClearDirective
fn clone(&self) -> ClearDirective
fn clone(&self) -> ClearDirective
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for ClearDirective
impl Debug for ClearDirective
impl Display for ClearDirective
impl Display for ClearDirective
impl FromStr for ClearDirective
impl FromStr for ClearDirective
type Err = Infallible
type Err = Infallible
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<ClearDirective, <ClearDirective as FromStr>::Err>
fn from_str(s: &str) -> Result<ClearDirective, <ClearDirective as FromStr>::Err>
Parses a string s
to return a value of this type. Read more
impl Hash for ClearDirective
impl Hash for ClearDirective
impl PartialEq<ClearDirective> for ClearDirective
impl PartialEq<ClearDirective> for ClearDirective
impl Copy for ClearDirective
impl Eq for ClearDirective
impl StructuralEq for ClearDirective
impl StructuralPartialEq for ClearDirective
Auto Trait Implementations
impl RefUnwindSafe for ClearDirective
impl Send for ClearDirective
impl Sync for ClearDirective
impl Unpin for ClearDirective
impl UnwindSafe for ClearDirective
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more