pub trait UserSession {
// Required method
fn get_session(&self) -> Session;
}Expand description
Helper trait that allows to get the session of a request.
Required Methods§
Sourcefn get_session(&self) -> Session
fn get_session(&self) -> Session
Get the session of the request, creating an empty one if needed.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".