Type Definition axum_sessions::SessionHandle

source ·
pub type SessionHandle = Arc<RwLock<Session>>;
Expand description

A type alias which provides a handle to the underlying session.

This is provided via http::Extensions. Most applications will use the ReadableSession and WritableSession extractors rather than using the handle directly. A notable exception is when using this library as a generic Tower middleware: such use cases will consume the handle directly.