[][src]Struct rusty_express::prelude::Session

pub struct Session { /* fields omitted */ }

Trait Implementations

impl SessionData for Session[src]

impl SessionExchange for Session[src]

impl<T: SessionData> SessionHandler<T> for Session[src]

fn set_data(&mut self, val: T)[src]

Set new session key-value pair, returns the old value if the key already exists

fn expires_at(&mut self, expires_time: DateTime<Utc>)[src]

Set the expires system time. This will turn off auto session life time renew if it's set.

fn save(&mut self)[src]

Manually save the session to the store. Normally when the session object goes out of the scope, it will be automatically saved to the session-store if it has been updated. Though we still provide this API to provide more flexibility towards session handling.

impl PersistHandler for Session[src]

impl Clone for Session[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Drop for Session[src]

Auto Trait Implementations

impl Sync for Session

impl Send for Session

impl Unpin for Session

impl RefUnwindSafe for Session

impl UnwindSafe for Session

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T