pub enum TokenConsumeOutcome {
Proceed,
Replay,
Invalid,
}Expand description
Outcome of a single-use form-token consume attempt (RFC-007 §3).
Variants§
Proceed
This call won the atomic race (UPDATE changed exactly one row). Execute the operation.
Replay
Token already consumed — idempotent replay. Return the prior result reference if one was stored; do not re-execute the operation.
Invalid
Token not found, expired, or binding mismatch. Reject the request.
Trait Implementations§
Source§impl Clone for TokenConsumeOutcome
impl Clone for TokenConsumeOutcome
Source§fn clone(&self) -> TokenConsumeOutcome
fn clone(&self) -> TokenConsumeOutcome
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 TokenConsumeOutcome
impl Debug for TokenConsumeOutcome
impl Eq for TokenConsumeOutcome
Source§impl PartialEq for TokenConsumeOutcome
impl PartialEq for TokenConsumeOutcome
Source§fn eq(&self, other: &TokenConsumeOutcome) -> bool
fn eq(&self, other: &TokenConsumeOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TokenConsumeOutcome
Auto Trait Implementations§
impl Freeze for TokenConsumeOutcome
impl RefUnwindSafe for TokenConsumeOutcome
impl Send for TokenConsumeOutcome
impl Sync for TokenConsumeOutcome
impl Unpin for TokenConsumeOutcome
impl UnsafeUnpin for TokenConsumeOutcome
impl UnwindSafe for TokenConsumeOutcome
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