# Trait actix_session::SessionExt

source ·

    pub trait SessionExt {
        // Required method
        fn get_session(&self) -> Session;
    }

Expand description

Extract a `Session` object from various `actix-web` types (e.g. `HttpRequest`, `ServiceRequest`, `ServiceResponse`).

## Required Methods§

source

#### fn get_session(&self) -> Session

Extract a `Session` object.

## Implementations on Foreign Types§

source §

### impl SessionExt for HttpRequest

source §

#### fn get_session(&self) -> Session

source §

### impl SessionExt for ServiceRequest

source §

#### fn get_session(&self) -> Session

source §

### impl SessionExt for ServiceResponse

source §

#### fn get_session(&self) -> Session

source §

### impl<'a> SessionExt for GuardContext<'a>

source §

#### fn get_session(&self) -> Session

## Implementors§