Skip to main content

layer

Function layer 

Source
pub fn layer(store: SessionStore) -> SessionContextLayer
Expand description

Create a session middleware layer from a SessionStore.

Install the returned layer with .layer(modo_session::layer(session_store)) on your app builder. The layer must be present for crate::SessionManager to function as an extractor.