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