pub enum RefreshPolicy {
Strict,
SameClientWithin {
seconds: u64,
},
}Expand description
Explicit replay policy. Both variants reject old credentials; neither grants a second refresh.
Variants§
Strict
Every identifiable old credential is treated as possible theft.
SameClientWithin
Classify only the immediately previous JTI with matching nonempty UA and compatible IP as stale, within this inclusive window. The product explicitly accepts spoofable fingerprint risk; missing/mismatched evidence still triggers reuse handling.
Trait Implementations§
Source§impl Clone for RefreshPolicy
impl Clone for RefreshPolicy
Source§fn clone(&self) -> RefreshPolicy
fn clone(&self) -> RefreshPolicy
Returns a duplicate of the value. Read more
1.0.0 · 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 RefreshPolicy
impl Debug for RefreshPolicy
Source§impl Default for RefreshPolicy
impl Default for RefreshPolicy
Source§fn default() -> RefreshPolicy
fn default() -> RefreshPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for RefreshPolicy
impl PartialEq for RefreshPolicy
impl Copy for RefreshPolicy
impl Eq for RefreshPolicy
impl StructuralPartialEq for RefreshPolicy
Auto Trait Implementations§
impl Freeze for RefreshPolicy
impl RefUnwindSafe for RefreshPolicy
impl Send for RefreshPolicy
impl Sync for RefreshPolicy
impl Unpin for RefreshPolicy
impl UnsafeUnpin for RefreshPolicy
impl UnwindSafe for RefreshPolicy
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