pub struct XDnsPrefetchControl(pub bool);Expand description
XDnsPrefetchControl sets the X-DNS-Prefetch-Control header to help control DNS prefetching,
which can improve user privacy at the expense of performance. See documentation on MDN for more.
Tuple Fields§
§0: boolIs indictating whether to enable DNS prefetching.
Trait Implementations§
Source§impl Clone for XDnsPrefetchControl
impl Clone for XDnsPrefetchControl
Source§fn clone(&self) -> XDnsPrefetchControl
fn clone(&self) -> XDnsPrefetchControl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for XDnsPrefetchControl
Source§impl Debug for XDnsPrefetchControl
impl Debug for XDnsPrefetchControl
Source§impl Default for XDnsPrefetchControl
impl Default for XDnsPrefetchControl
Source§fn default() -> XDnsPrefetchControl
fn default() -> XDnsPrefetchControl
Returns the “default value” for a type. Read more
Source§impl IntoHeader for XDnsPrefetchControl
impl IntoHeader for XDnsPrefetchControl
fn header_name(&self) -> HeaderName
fn header_value(&self) -> Result<HeaderValue, InvalidHeaderValue>
Auto Trait Implementations§
impl Freeze for XDnsPrefetchControl
impl RefUnwindSafe for XDnsPrefetchControl
impl Send for XDnsPrefetchControl
impl Sync for XDnsPrefetchControl
impl Unpin for XDnsPrefetchControl
impl UnsafeUnpin for XDnsPrefetchControl
impl UnwindSafe for XDnsPrefetchControl
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
Mutably borrows from an owned value. Read more