pub enum Prefetch {
On,
Off,
}
Expand description
The X-DNS-Prefetch-Control header: controls browser DNS prefetching.
Tells the browser if it should perform domain name resolution on both links that the user may choose to follow as well as URLs for items referenced by the document including images, CSS, JavaScript, and so forth. Disabling prefetching is useful if you don’t control the link on the pages, or know that you don’t want to leak information to these domains.
Variants§
On
Enables DNS prefetching. This is the browser default.
Off
Disables DNS prefetching. This is the shield policy default.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Prefetch
impl Send for Prefetch
impl Sync for Prefetch
impl Unpin for Prefetch
impl UnwindSafe for Prefetch
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
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>
§impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
§fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where A: Array<Item = T>,
Converts
self
into a collection.