pub struct RedisSessionStoreBuilder { /* private fields */ }Available on crate feature
redis-session only.Expand description
A fluent builder to construct a RedisSessionStore instance with custom configuration
parameters.
Implementations§
Source§impl RedisSessionStoreBuilder
impl RedisSessionStoreBuilder
Sourcepub fn cache_keygen<F>(self, keygen: F) -> Self
pub fn cache_keygen<F>(self, keygen: F) -> Self
Set a custom cache key generation strategy, expecting a session key as input.
Sourcepub async fn build(self) -> Result<RedisSessionStore>
pub async fn build(self) -> Result<RedisSessionStore>
Finalises builder and returns a RedisSessionStore instance.
Auto Trait Implementations§
impl Freeze for RedisSessionStoreBuilder
impl !RefUnwindSafe for RedisSessionStoreBuilder
impl Send for RedisSessionStoreBuilder
impl Sync for RedisSessionStoreBuilder
impl Unpin for RedisSessionStoreBuilder
impl !UnwindSafe for RedisSessionStoreBuilder
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