[][src]Enum tide::http::cache::ClearDirective

pub enum ClearDirective {
    Cache,
    Cookies,
    Storage,
    ExecutionContexts,
}

An HTTP Clear-Site-Data directive.

MDN Documentation

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[src]

pub fn as_str(&self) -> &'static str[src]

Get the formatted string.

Trait Implementations

impl Clone for ClearDirective[src]

impl Copy for ClearDirective[src]

impl Debug for ClearDirective[src]

impl Display for ClearDirective[src]

impl Eq for ClearDirective[src]

impl FromStr for ClearDirective[src]

type Err = Infallible

The associated error which can be returned from parsing.

impl Hash for ClearDirective[src]

impl PartialEq<ClearDirective> for ClearDirective[src]

impl StructuralEq for ClearDirective[src]

impl StructuralPartialEq for ClearDirective[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,