pub struct SessionConfig { /* private fields */ }Expand description
Session configuration, registered on the app context (with the router’s
sessions extension method).
Assemble one with SessionConfig::builder; SessionConfig::default() is the
all-defaults configuration, carrying the token in the default cookie
store.
Implementations§
Source§impl SessionConfig
impl SessionConfig
Sourcepub fn builder() -> SessionConfigBuilder
pub fn builder() -> SessionConfigBuilder
Creates a builder for a session configuration.
Trait Implementations§
Source§impl Default for SessionConfig
Available on crate feature cookie only.Builds the all-defaults configuration, like SessionConfig::builder with an
immediate build.
impl Default for SessionConfig
Available on crate feature
cookie only.Builds the all-defaults configuration, like SessionConfig::builder with an
immediate build.
Auto Trait Implementations§
impl !RefUnwindSafe for SessionConfig
impl !UnwindSafe for SessionConfig
impl Freeze for SessionConfig
impl Send for SessionConfig
impl Sync for SessionConfig
impl Unpin for SessionConfig
impl UnsafeUnpin 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