[][src]Struct reign_router::middleware::session::Session

pub struct Session<'a, T, B> where
    T: Serialize + for<'de> Deserialize<'de> + Send + Sync + 'static,
    B: SessionBackend + Send + Sync
{ /* fields omitted */ }

Implementations

impl<'a, T, B> Session<'a, T, B> where
    T: Serialize + for<'de> Deserialize<'de> + Send + Sync + 'static,
    B: SessionBackend + Send + Sync
[src]

pub fn new(backend: B) -> Self[src]

pub fn path(self, path: &'a str) -> Self[src]

pub fn name(self, name: &'a str) -> Self[src]

pub fn secure(self, secure: bool) -> Self[src]

pub fn http_only(self, http_only: bool) -> Self[src]

pub fn domain(self, domain: &'a str) -> Self[src]

pub fn cookie_secret(self, secret: &'a str) -> Self[src]

pub fn same_site(self, same_site: SameSite) -> Self[src]

Trait Implementations

impl<'a, T, B> Middleware for Session<'a, T, B> where
    T: Serialize + for<'de> Deserialize<'de> + Send + Sync + 'static,
    B: SessionBackend + Send + Sync
[src]

Auto Trait Implementations

impl<'a, T, B> RefUnwindSafe for Session<'a, T, B> where
    B: RefUnwindSafe,
    T: RefUnwindSafe

impl<'a, T, B> Send for Session<'a, T, B>

impl<'a, T, B> Sync for Session<'a, T, B>

impl<'a, T, B> Unpin for Session<'a, T, B> where
    B: Unpin,
    T: Unpin

impl<'a, T, B> UnwindSafe for Session<'a, T, B> where
    B: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,