pub struct XDnsPrefetchControl;Expand description
See X_DNS_PREFETCH_CONTROL for more details.
Implementations§
Source§impl XDnsPrefetchControl
impl XDnsPrefetchControl
Sourcepub const fn from_static(value: &'static str) -> Header<XDnsPrefetchControl>
pub const fn from_static(value: &'static str) -> Header<XDnsPrefetchControl>
Creates a new instance of [Header<T>] from a static str
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Header<XDnsPrefetchControl>, Error>
pub fn from_bytes(bytes: &[u8]) -> Result<Header<XDnsPrefetchControl>, Error>
Construct a typed header from bytes (validated).
Sourcepub fn new(value: HeaderValue) -> Header<XDnsPrefetchControl>
pub fn new(value: HeaderValue) -> Header<XDnsPrefetchControl>
Wrap an owned raw HeaderValue (validated elsewhere).
Sourcepub fn from_ref(value: &HeaderValue) -> Header<XDnsPrefetchControl>
pub fn from_ref(value: &HeaderValue) -> Header<XDnsPrefetchControl>
Wrap a borrowed raw HeaderValue (validated elsewhere).
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for XDnsPrefetchControl
impl Debug for XDnsPrefetchControl
Source§impl FromHeaders for XDnsPrefetchControl
impl FromHeaders for XDnsPrefetchControl
Source§const NAME: HeaderName = X_DNS_PREFETCH_CONTROL
const NAME: HeaderName = X_DNS_PREFETCH_CONTROL
Returns current
HeaderNameSource§fn from_headers(headers: &HeaderMap) -> Option<&HeaderValue>
fn from_headers(headers: &HeaderMap) -> Option<&HeaderValue>
Reads a
HeaderValue from HeaderMapSource§impl Hash for XDnsPrefetchControl
impl Hash for XDnsPrefetchControl
Source§impl Ord for XDnsPrefetchControl
impl Ord for XDnsPrefetchControl
Source§fn cmp(&self, other: &XDnsPrefetchControl) -> Ordering
fn cmp(&self, other: &XDnsPrefetchControl) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for XDnsPrefetchControl
impl PartialEq for XDnsPrefetchControl
Source§impl PartialOrd for XDnsPrefetchControl
impl PartialOrd for XDnsPrefetchControl
impl Copy for XDnsPrefetchControl
impl Eq for XDnsPrefetchControl
impl StructuralPartialEq for XDnsPrefetchControl
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.