pub enum SessionRenewalStrategy {
Ignore,
AutomaticRenewal {
time_to_live: Duration,
maximum_remaining_time_to_live_for_renewal: Duration,
},
}Expand description
The strategy to renew sessions.
Variants§
Ignore
Never update the expiry of a session. This leaves updating expiry times to the user.
AutomaticRenewal
Sessions have a given time-to-live, and their expiry is renewed periodically. For example, if the TTL is 7 days, and the maximum remaining TTL for renewal is 6 days, then the session’s expiry will be updated about daily, if the session is being used.
Trait Implementations§
Source§impl Clone for SessionRenewalStrategy
impl Clone for SessionRenewalStrategy
Source§fn clone(&self) -> SessionRenewalStrategy
fn clone(&self) -> SessionRenewalStrategy
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 SessionRenewalStrategy
impl Debug for SessionRenewalStrategy
impl Copy for SessionRenewalStrategy
Auto Trait Implementations§
impl Freeze for SessionRenewalStrategy
impl RefUnwindSafe for SessionRenewalStrategy
impl Send for SessionRenewalStrategy
impl Sync for SessionRenewalStrategy
impl Unpin for SessionRenewalStrategy
impl UnwindSafe for SessionRenewalStrategy
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