pub struct SessionConfig { /* private fields */ }Implementations§
Source§impl SessionConfig
impl SessionConfig
pub fn expires_in(self, d: Duration) -> Self
Sourcepub fn update_age(self, d: Duration) -> Self
pub fn update_age(self, d: Duration) -> Self
Extend the expiry at most this often (default one day).
Sourcepub fn fresh_age(self, d: Duration) -> Self
pub fn fresh_age(self, d: Duration) -> Self
Fresh endpoints need a session created within this window. Zero disables the check.
A signed cookie caching the session for max_age. Saves the DB lookup, at the cost
of revocations taking up to max_age to reach other devices.
Trait Implementations§
Source§impl Clone for SessionConfig
impl Clone for SessionConfig
Source§impl Debug for SessionConfig
impl Debug for SessionConfig
Auto Trait Implementations§
impl Forget for SessionConfig
impl Freeze for SessionConfig
impl Move for SessionConfig
impl RefUnwindSafe for SessionConfig
impl Send for SessionConfig
impl Sync for SessionConfig
impl Unpin for SessionConfig
impl UnsafeUnpin for SessionConfig
impl UnwindSafe for SessionConfig
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