pub enum InvalidIfMatch {
RepeatedHeader,
Empty,
NonAscii,
Wildcard,
WeakValidator,
List,
Malformed,
PrefixMismatch,
InvalidRevision,
RevisionOutOfRange,
}Expand description
Why an If-Match value is not one strong ETag for the resource.
Variants§
RepeatedHeader
The request carries more than one If-Match header.
Empty
The header value is empty or only whitespace.
NonAscii
The header value contains bytes outside visible ASCII, space, and tab.
Wildcard
The header value is *.
WeakValidator
The ETag is weak (W/"...").
List
The header value lists more than one ETag.
Malformed
The header value is not a quoted entity tag.
PrefixMismatch
The ETag does not start with the route’s prefix.
InvalidRevision
The revision is not canonical decimal digits.
RevisionOutOfRange
The revision is larger than Revision::MAX.
Implementations§
Trait Implementations§
Source§impl Clone for InvalidIfMatch
impl Clone for InvalidIfMatch
impl Copy for InvalidIfMatch
Source§impl Debug for InvalidIfMatch
impl Debug for InvalidIfMatch
Source§impl Display for InvalidIfMatch
impl Display for InvalidIfMatch
impl Eq for InvalidIfMatch
Source§impl Error for InvalidIfMatch
impl Error for InvalidIfMatch
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<InvalidIfMatch> for PreconditionError
impl From<InvalidIfMatch> for PreconditionError
Source§fn from(error: InvalidIfMatch) -> Self
fn from(error: InvalidIfMatch) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InvalidIfMatch
impl PartialEq for InvalidIfMatch
impl StructuralPartialEq for InvalidIfMatch
Auto Trait Implementations§
impl Freeze for InvalidIfMatch
impl RefUnwindSafe for InvalidIfMatch
impl Send for InvalidIfMatch
impl Sync for InvalidIfMatch
impl Unpin for InvalidIfMatch
impl UnsafeUnpin for InvalidIfMatch
impl UnwindSafe for InvalidIfMatch
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> 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§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.