pub enum ConditionalOutcome {
Proceed,
PreconditionFailed,
NotModified,
}Expand description
Outcome of evaluating conditional request headers against a current resource ETag.
Variants§
Proceed
The request may proceed.
PreconditionFailed
Request must fail with 412 Precondition Failed (e.g.
If-Match mismatch).
NotModified
Request should return 304 Not Modified (GET/HEAD only with
If-None-Match).
Trait Implementations§
Source§impl Clone for ConditionalOutcome
impl Clone for ConditionalOutcome
Source§fn clone(&self) -> ConditionalOutcome
fn clone(&self) -> ConditionalOutcome
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 moreSource§impl Debug for ConditionalOutcome
impl Debug for ConditionalOutcome
Source§impl PartialEq for ConditionalOutcome
impl PartialEq for ConditionalOutcome
Source§fn eq(&self, other: &ConditionalOutcome) -> bool
fn eq(&self, other: &ConditionalOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ConditionalOutcome
impl Eq for ConditionalOutcome
impl StructuralPartialEq for ConditionalOutcome
Auto Trait Implementations§
impl Freeze for ConditionalOutcome
impl RefUnwindSafe for ConditionalOutcome
impl Send for ConditionalOutcome
impl Sync for ConditionalOutcome
impl Unpin for ConditionalOutcome
impl UnsafeUnpin for ConditionalOutcome
impl UnwindSafe for ConditionalOutcome
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