pub struct SessionConfigBuilder { /* private fields */ }
Expand description
A utility to help build a SessionConfig
in an API backwards compatible way.
Implementations§
Source§impl SessionConfigBuilder
impl SessionConfigBuilder
Sourcepub fn ttl_seconds(self, ttl_seconds: Option<i64>) -> Self
pub fn ttl_seconds(self, ttl_seconds: Option<i64>) -> Self
Set the session time to live (TTL) in seconds. Default: None
Set the the secure flag in the session cookie (HTTPS only).
Sourcepub fn finish(self) -> Result<SessionConfig, SessionConfigError>
pub fn finish(self) -> Result<SessionConfig, SessionConfigError>
Consume the builder and return a config.
Trait Implementations§
Source§impl Clone for SessionConfigBuilder
impl Clone for SessionConfigBuilder
Source§fn clone(&self) -> SessionConfigBuilder
fn clone(&self) -> SessionConfigBuilder
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 moreAuto Trait Implementations§
impl Freeze for SessionConfigBuilder
impl RefUnwindSafe for SessionConfigBuilder
impl Send for SessionConfigBuilder
impl Sync for SessionConfigBuilder
impl Unpin for SessionConfigBuilder
impl UnwindSafe for SessionConfigBuilder
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