pub struct AutoRefreshConfig {
pub check_interval: Duration,
pub refresh_margin: Duration,
pub max_retries: u32,
}Expand description
Configuration for automatic token refresh.
Fields§
§check_interval: DurationHow often to check if the session needs refreshing (default: 30s).
refresh_margin: DurationHow far before expiry to trigger a refresh (default: 60s).
max_retries: u32Maximum consecutive refresh failures before signing out (default: 3).
Trait Implementations§
Source§impl Clone for AutoRefreshConfig
impl Clone for AutoRefreshConfig
Source§fn clone(&self) -> AutoRefreshConfig
fn clone(&self) -> AutoRefreshConfig
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 AutoRefreshConfig
impl Debug for AutoRefreshConfig
Auto Trait Implementations§
impl Freeze for AutoRefreshConfig
impl RefUnwindSafe for AutoRefreshConfig
impl Send for AutoRefreshConfig
impl Sync for AutoRefreshConfig
impl Unpin for AutoRefreshConfig
impl UnsafeUnpin for AutoRefreshConfig
impl UnwindSafe for AutoRefreshConfig
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