pub struct IfNoneMatch(/* private fields */);Expand description
If-None-Match header.
Implementations§
Source§impl IfNoneMatch
impl IfNoneMatch
Sourcepub fn any() -> IfNoneMatch
pub fn any() -> IfNoneMatch
Creates an If-None-Match header that matches any ETag.
Sourcepub fn condition_passes(&self, etag: &ETag) -> bool
pub fn condition_passes(&self, etag: &ETag) -> bool
Check if the condition passes.
Trait Implementations§
Source§impl Header for IfNoneMatch
impl Header for IfNoneMatch
Source§fn header_name() -> HeaderName
fn header_name() -> HeaderName
The name of the header.
Source§fn decode(value: &HeaderValue) -> Option<Self>
fn decode(value: &HeaderValue) -> Option<Self>
Decode the header from a
HeaderValue.Source§fn encode(self) -> HeaderValue
fn encode(self) -> HeaderValue
Encode the header into a
HeaderValue.Auto Trait Implementations§
impl !Freeze for IfNoneMatch
impl RefUnwindSafe for IfNoneMatch
impl Send for IfNoneMatch
impl Sync for IfNoneMatch
impl Unpin for IfNoneMatch
impl UnsafeUnpin for IfNoneMatch
impl UnwindSafe for IfNoneMatch
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