pub enum ClaimOutcome {
Won,
Lost,
}Expand description
Outcome of a claim_code attempt (RFC-005 §3).
Only Won may advance the host to session creation or any other
side-effecting operation. Lost is definitive; there is no retry.
Variants§
Won
This caller won the atomic race: the conditional UPDATE changed exactly one row. Proceed with session issuance and any host-side effects.
Lost
The conditional UPDATE changed zero rows: the code was already claimed, revoked, or expired when this call ran. Do not proceed.
Trait Implementations§
Source§impl Clone for ClaimOutcome
impl Clone for ClaimOutcome
Source§fn clone(&self) -> ClaimOutcome
fn clone(&self) -> ClaimOutcome
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 ClaimOutcome
impl Debug for ClaimOutcome
impl Eq for ClaimOutcome
Source§impl PartialEq for ClaimOutcome
impl PartialEq for ClaimOutcome
Source§fn eq(&self, other: &ClaimOutcome) -> bool
fn eq(&self, other: &ClaimOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClaimOutcome
Auto Trait Implementations§
impl Freeze for ClaimOutcome
impl RefUnwindSafe for ClaimOutcome
impl Send for ClaimOutcome
impl Sync for ClaimOutcome
impl Unpin for ClaimOutcome
impl UnsafeUnpin for ClaimOutcome
impl UnwindSafe for ClaimOutcome
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