pub struct IfMatch;Expand description
See IF_MATCH for more details.
Implementations§
Source§impl IfMatch
impl IfMatch
Sourcepub const fn from_static(value: &'static str) -> Header<IfMatch>
pub const fn from_static(value: &'static str) -> Header<IfMatch>
Creates a new instance of [Header<T>] from a static str
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Header<IfMatch>, Error>
pub fn from_bytes(bytes: &[u8]) -> Result<Header<IfMatch>, Error>
Construct a typed header from bytes (validated).
Sourcepub fn new(value: HeaderValue) -> Header<IfMatch>
pub fn new(value: HeaderValue) -> Header<IfMatch>
Wrap an owned raw HeaderValue (validated elsewhere).
Sourcepub fn from_ref(value: &HeaderValue) -> Header<IfMatch>
pub fn from_ref(value: &HeaderValue) -> Header<IfMatch>
Wrap a borrowed raw HeaderValue (validated elsewhere).
Trait Implementations§
Source§impl FromHeaders for IfMatch
impl FromHeaders for IfMatch
Source§const NAME: HeaderName = IF_MATCH
const NAME: HeaderName = IF_MATCH
Returns current
HeaderNameSource§fn from_headers(headers: &HeaderMap) -> Option<&HeaderValue>
fn from_headers(headers: &HeaderMap) -> Option<&HeaderValue>
Reads a
HeaderValue from HeaderMapSource§impl Ord for IfMatch
impl Ord for IfMatch
Source§impl PartialOrd for IfMatch
impl PartialOrd for IfMatch
impl Copy for IfMatch
impl Eq for IfMatch
impl StructuralPartialEq for IfMatch
Auto Trait Implementations§
impl Freeze for IfMatch
impl RefUnwindSafe for IfMatch
impl Send for IfMatch
impl Sync for IfMatch
impl Unpin for IfMatch
impl UnsafeUnpin for IfMatch
impl UnwindSafe for IfMatch
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.