pub enum RotateRefreshTokenOutcome {
Rotated,
SessionMissing,
LeaseUnavailable,
RefreshTokenMismatch,
}Expand description
Result of attempting an atomic refresh-token rotation.
Variants§
Rotated
Rotation succeeded and the new refresh token is now active.
SessionMissing
The session no longer exists or is no longer active.
The lease was missing, expired, or owned by another renewal attempt.
RefreshTokenMismatch
The previous refresh token no longer matched the persisted active token.
Callers should treat this as potential replay and apply family revocation rules as appropriate.
Trait Implementations§
Source§impl Clone for RotateRefreshTokenOutcome
impl Clone for RotateRefreshTokenOutcome
Source§fn clone(&self) -> RotateRefreshTokenOutcome
fn clone(&self) -> RotateRefreshTokenOutcome
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 RotateRefreshTokenOutcome
impl Debug for RotateRefreshTokenOutcome
Source§impl PartialEq for RotateRefreshTokenOutcome
impl PartialEq for RotateRefreshTokenOutcome
Source§fn eq(&self, other: &RotateRefreshTokenOutcome) -> bool
fn eq(&self, other: &RotateRefreshTokenOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RotateRefreshTokenOutcome
impl Eq for RotateRefreshTokenOutcome
impl StructuralPartialEq for RotateRefreshTokenOutcome
Auto Trait Implementations§
impl Freeze for RotateRefreshTokenOutcome
impl RefUnwindSafe for RotateRefreshTokenOutcome
impl Send for RotateRefreshTokenOutcome
impl Sync for RotateRefreshTokenOutcome
impl Unpin for RotateRefreshTokenOutcome
impl UnsafeUnpin for RotateRefreshTokenOutcome
impl UnwindSafe for RotateRefreshTokenOutcome
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