Skip to main content

UserSession

Trait UserSession 

Source
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§

Source

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".

Implementations on Foreign Types§

Source§

impl UserSession for HttpRequest

Source§

impl UserSession for RequestHead

Source§

impl<St> UserSession for WebRequest<St>

Implementors§