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§impl Debug for TokenConsumeOutcome
impl Debug for TokenConsumeOutcome
impl Eq for TokenConsumeOutcome
Source§impl PartialEq for TokenConsumeOutcome
impl PartialEq for TokenConsumeOutcome
impl StructuralPartialEq for TokenConsumeOutcome
Auto Trait Implementations§
impl Forget for TokenConsumeOutcome
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