pub enum ForceTokenRefresh {
Never,
Once,
Always,
}
Variants§
Never
Always use the token cache first to when returning tokens. Expired tokens will still cause an authorization request to be called.
Once
ForceRefreshToken::Once will cause only the next authorization request to ignore any tokens in cache and request a new token. Authorization requests after this are treated as ForceRefreshToken::Never
Always
Always make an authorization request regardless of any tokens in cache.
Trait Implementations§
Source§impl Clone for ForceTokenRefresh
impl Clone for ForceTokenRefresh
Source§fn clone(&self) -> ForceTokenRefresh
fn clone(&self) -> ForceTokenRefresh
Returns a copy 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 ForceTokenRefresh
impl Debug for ForceTokenRefresh
Source§impl Default for ForceTokenRefresh
impl Default for ForceTokenRefresh
Source§fn default() -> ForceTokenRefresh
fn default() -> ForceTokenRefresh
Returns the “default value” for a type. Read more
Source§impl Hash for ForceTokenRefresh
impl Hash for ForceTokenRefresh
Source§impl Ord for ForceTokenRefresh
impl Ord for ForceTokenRefresh
Source§fn cmp(&self, other: &ForceTokenRefresh) -> Ordering
fn cmp(&self, other: &ForceTokenRefresh) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ForceTokenRefresh
impl PartialEq for ForceTokenRefresh
Source§impl PartialOrd for ForceTokenRefresh
impl PartialOrd for ForceTokenRefresh
impl Eq for ForceTokenRefresh
impl StructuralPartialEq for ForceTokenRefresh
Auto Trait Implementations§
impl Freeze for ForceTokenRefresh
impl RefUnwindSafe for ForceTokenRefresh
impl Send for ForceTokenRefresh
impl Sync for ForceTokenRefresh
impl Unpin for ForceTokenRefresh
impl UnwindSafe for ForceTokenRefresh
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