#[non_exhaustive]pub enum Replaced {
Updated(Value),
Missing,
Stale,
}Available on crate feature
server only.Expand description
What a conditional write did.
The three outcomes are the three answers HTTP needs: 200 with the new
resource, 404, or 412 Precondition Failed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Updated(Value)
The write happened; this is the resource as stored.
Missing
There is no resource at that id.
Stale
The resource changed since the tag the caller was holding, so the write was refused rather than allowed to discard someone else’s.
Trait Implementations§
impl Eq for Replaced
impl StructuralPartialEq for Replaced
Auto Trait Implementations§
impl Forget for Replaced
impl Freeze for Replaced
impl Move for Replaced
impl RefUnwindSafe for Replaced
impl Send for Replaced
impl Sync for Replaced
impl Unpin for Replaced
impl UnsafeUnpin for Replaced
impl UnwindSafe for Replaced
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.