Skip to main content

SessionStoreFactory

Trait SessionStoreFactory 

Source
pub trait SessionStoreFactory: Send + Sync {
    // Required method
    fn build(&self, config: &Value) -> Result<Arc<dyn SessionStore>>;
}
Expand description

Builds a SessionStore from its [storage.<name>] TOML subsection.

Required Methods§

Source

fn build(&self, config: &Value) -> Result<Arc<dyn SessionStore>>

Construct the session-store backend from its config subsection.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§